Class AccelerationConflicts
java.lang.Object
org.opentrafficsim.road.gtu.tactical.lmrs.AccelerationConflicts
- All Implemented Interfaces:
Blockable,AccelerationIncentive
Conflicts acceleration incentive.
Copyright (c) 2013-2026 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Field Summary
Fields inherited from interface org.opentrafficsim.road.gtu.tactical.lmrs.AccelerationIncentive
NO_REASON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal org.djunits.value.vdouble.scalar.Accelerationaccelerate(TacticalContextEgo context, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance) Determine acceleration.booleanReturns whether the GTU is blocking conflicts.final StringtoString()
-
Constructor Details
-
AccelerationConflicts
public AccelerationConflicts()Constructor.
-
-
Method Details
-
accelerate
public final org.djunits.value.vdouble.scalar.Acceleration accelerate(TacticalContextEgo context, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance) throws ParameterException, GtuException Description copied from interface:AccelerationIncentiveDetermine acceleration.- Specified by:
acceleratein interfaceAccelerationIncentive- Parameters:
context- tactical information such as parameters and car-following modellane- lane on which to consider the accelerationmergeDistance- distance over which a lane change is impossible- Returns:
- acceleration
- Throws:
ParameterException- on missing parameterGtuException- when there is a problem with the state of the GTU when planning a path
-
isBlocking
public boolean isBlocking()Description copied from interface:BlockableReturns whether the GTU is blocking conflicts.- Specified by:
isBlockingin interfaceBlockable- Returns:
- whether the GTU is blocking conflicts
-
toString
-