Class AccelerationTrafficLights
java.lang.Object
org.opentrafficsim.road.gtu.lane.tactical.lmrs.AccelerationTrafficLights
- All Implemented Interfaces:
AccelerationIncentive
public class AccelerationTrafficLights extends java.lang.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 27 jan. 2017
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Constructor Summary
Constructors Constructor Description AccelerationTrafficLights() -
Method Summary
Modifier and Type Method Description voidaccelerate(SimpleOperationalPlan simplePlan, RelativeLane lane, Length mergeDistance, LaneBasedGTU gtu, LanePerception perception, CarFollowingModel carFollowingModel, Speed speed, Parameters params, SpeedLimitInfo speedLimitInfo)Determine acceleration.java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opentrafficsim.road.gtu.lane.tactical.lmrs.AccelerationIncentive
onRoute
-
Constructor Details
-
AccelerationTrafficLights
public AccelerationTrafficLights()
-
-
Method Details
-
accelerate
public final void accelerate(SimpleOperationalPlan simplePlan, RelativeLane lane, Length mergeDistance, LaneBasedGTU gtu, LanePerception perception, CarFollowingModel carFollowingModel, Speed speed, Parameters params, SpeedLimitInfo speedLimitInfo) throws ParameterException, OperationalPlanExceptionDetermine acceleration.- Specified by:
acceleratein 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:
ParameterException- on missing parameterOperationalPlanException- in case of an error
-
toString
public final java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-