Class AccelerationLaneChangers
java.lang.Object
org.opentrafficsim.road.gtu.tactical.lmrs.AccelerationLaneChangers
- All Implemented Interfaces:
Supplier<AccelerationLaneChangers>,Stateless<AccelerationLaneChangers>,AccelerationIncentive
public final class AccelerationLaneChangers
extends Object
implements AccelerationIncentive, Stateless<AccelerationLaneChangers>
Accelerate to follow lane-changing leaders from adjacent lanes towards the current lane. This is only relevant when
LaneBookkeeping.EDGE is used.
Copyright (c) 2026-2026 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Wouter Schakel
-
Field Summary
FieldsFields inherited from interface org.opentrafficsim.road.gtu.tactical.lmrs.AccelerationIncentive
NO_REASON -
Method Summary
Modifier and TypeMethodDescriptionorg.djunits.value.vdouble.scalar.Accelerationaccelerate(TacticalContextEgo context, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance) Determine acceleration.get()
-
Field Details
-
SINGLETON
Singleton instance.
-
-
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
-
get
- Specified by:
getin interfaceStateless<AccelerationLaneChangers>- Specified by:
getin interfaceSupplier<AccelerationLaneChangers>
-