Class AccelerationNoRightOvertake
java.lang.Object
org.opentrafficsim.road.gtu.lane.tactical.lmrs.AccelerationNoRightOvertake
- All Implemented Interfaces:
AccelerationIncentive
Makes a GTU follow leaders in the left lane, with limited deceleration.
Copyright (c) 2013-2024 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
Modifier and TypeFieldDescriptionstatic final org.opentrafficsim.base.parameters.ParameterTypeAcceleration
Maximum adjustment deceleration, e.g. when speed limit drops.static final org.opentrafficsim.base.parameters.ParameterTypeSpeed
Speed threshold below which traffic is considered congested. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accelerate
(SimpleOperationalPlan simplePlan, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance, LaneBasedGtu gtu, LanePerception perception, CarFollowingModel carFollowingModel, org.djunits.value.vdouble.scalar.Speed speed, org.opentrafficsim.base.parameters.Parameters params, SpeedLimitInfo speedLimitInfo) Determine acceleration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opentrafficsim.road.gtu.lane.tactical.lmrs.AccelerationIncentive
onRoute
-
Field Details
-
VCONG
public static final org.opentrafficsim.base.parameters.ParameterTypeSpeed VCONGSpeed threshold below which traffic is considered congested. -
B0
public static final org.opentrafficsim.base.parameters.ParameterTypeAcceleration B0Maximum adjustment deceleration, e.g. when speed limit drops.
-
-
Constructor Details
-
AccelerationNoRightOvertake
public AccelerationNoRightOvertake()
-
-
Method Details
-
accelerate
public void accelerate(SimpleOperationalPlan simplePlan, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance, LaneBasedGtu gtu, LanePerception perception, CarFollowingModel carFollowingModel, org.djunits.value.vdouble.scalar.Speed speed, org.opentrafficsim.base.parameters.Parameters params, SpeedLimitInfo speedLimitInfo) throws OperationalPlanException, org.opentrafficsim.base.parameters.ParameterException, GtuException Determine acceleration.- Specified by:
accelerate
in interfaceAccelerationIncentive
- Parameters:
simplePlan
- SimpleOperationalPlan; simple plan to set the accelerationlane
- RelativeLane; lane on which to consider the accelerationmergeDistance
- Length; distance over which a lane change is impossiblegtu
- LaneBasedGtu; gtuperception
- LanePerception; perceptioncarFollowingModel
- CarFollowingModel; car-following modelspeed
- Speed; current speedparams
- Parameters; parametersspeedLimitInfo
- SpeedLimitInfo; speed limit info- Throws:
OperationalPlanException
- in case of an errororg.opentrafficsim.base.parameters.ParameterException
- on missing parameterGtuException
- when there is a problem with the state of the GTU when planning a path
-