Class AccelerationNoRightOvertake
- java.lang.Object
-
- org.opentrafficsim.road.gtu.lane.tactical.lmrs.AccelerationNoRightOvertake
-
- All Implemented Interfaces:
AccelerationIncentive
public class AccelerationNoRightOvertake extends Object implements AccelerationIncentive
Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 8 mrt. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Field Summary
Fields Modifier and Type Field Description static ParameterTypeAcceleration
B0
Maximum adjustment deceleration, e.g.static ParameterTypeSpeed
VCONG
Speed threshold below which traffic is considered congested.
-
Constructor Summary
Constructors Constructor Description AccelerationNoRightOvertake()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accelerate(SimpleOperationalPlan simplePlan, RelativeLane lane, Length mergeDistance, LaneBasedGTU gtu, LanePerception perception, CarFollowingModel carFollowingModel, Speed speed, 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 Detail
-
VCONG
public static final ParameterTypeSpeed VCONG
Speed threshold below which traffic is considered congested.
-
B0
public static final ParameterTypeAcceleration B0
Maximum adjustment deceleration, e.g. when speed limit drops.
-
-
Method Detail
-
accelerate
public void accelerate(SimpleOperationalPlan simplePlan, RelativeLane lane, Length mergeDistance, LaneBasedGTU gtu, LanePerception perception, CarFollowingModel carFollowingModel, Speed speed, Parameters params, SpeedLimitInfo speedLimitInfo) throws OperationalPlanException, 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 errorParameterException
- on missing parameterGTUException
- when there is a problem with the state of the GTU when planning a path
-
-