Class AccelerationNoSlowLaneOvertake
java.lang.Object
org.opentrafficsim.road.gtu.tactical.lmrs.AccelerationNoSlowLaneOvertake
- All Implemented Interfaces:
AccelerationIncentive
Makes a GTU follow leaders in the left lane, with limited deceleration.
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
FieldsModifier and TypeFieldDescriptionstatic final ParameterTypeAccelerationMaximum adjustment deceleration, e.g. when speed limit drops.static final ParameterTypeSpeedSpeed threshold below which traffic is considered congested.Fields inherited from interface org.opentrafficsim.road.gtu.tactical.lmrs.AccelerationIncentive
NO_REASON -
Constructor Summary
ConstructorsConstructorDescriptionAccelerationNoSlowLaneOvertake(Supplier<Desire> getMandatoryDesire) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.djunits.value.vdouble.scalar.Accelerationaccelerate(TacticalContextEgo context, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance) Determine acceleration.
-
Field Details
-
VCONG
Speed threshold below which traffic is considered congested. -
B0
Maximum adjustment deceleration, e.g. when speed limit drops.
-
-
Constructor Details
-
AccelerationNoSlowLaneOvertake
Constructor.- Parameters:
getMandatoryDesire- supplier of mandatory desire from the model
-
-
Method Details
-
accelerate
public 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
-