Class AccelerationTrafficLights
java.lang.Object
org.opentrafficsim.road.gtu.tactical.lmrs.AccelerationTrafficLights
- All Implemented Interfaces:
Supplier<AccelerationTrafficLights>,Stateless<AccelerationTrafficLights>,AccelerationIncentive
public final class AccelerationTrafficLights
extends Object
implements AccelerationIncentive, Stateless<AccelerationTrafficLights>
Acceleration incentive for traffic lights.
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
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()toString()
-
Field Details
-
SINGLETON
Singleton instance.
-
-
Method Details
-
get
- Specified by:
getin interfaceStateless<AccelerationTrafficLights>- Specified by:
getin interfaceSupplier<AccelerationTrafficLights>
-
accelerate
public org.djunits.value.vdouble.scalar.Acceleration accelerate(TacticalContextEgo context, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance) throws ParameterException, OperationalPlanException 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 parameterOperationalPlanException
-
toString
-