Class AccelerationNoRightOvertake
java.lang.Object
org.opentrafficsim.road.gtu.lane.tactical.lmrs.AccelerationNoRightOvertake
- All Implemented Interfaces:
Supplier<AccelerationNoRightOvertake>,Stateless<AccelerationNoRightOvertake>,AccelerationIncentive
public final class AccelerationNoRightOvertake
extends Object
implements AccelerationIncentive, Stateless<AccelerationNoRightOvertake>
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
FieldsModifier and TypeFieldDescriptionstatic final ParameterTypeAccelerationMaximum adjustment deceleration, e.g. when speed limit drops.static final AccelerationNoRightOvertakeSingleton instance.static final ParameterTypeSpeedSpeed threshold below which traffic is considered congested. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccelerate(SimpleOperationalPlan simplePlan, RelativeLane lane, Length mergeDistance, LaneBasedGtu gtu, LanePerception perception, CarFollowingModel carFollowingModel, Speed speed, Parameters params, SpeedLimitInfo speedLimitInfo) Determine acceleration.get()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opentrafficsim.road.gtu.lane.tactical.lmrs.AccelerationIncentive
onRoute
-
Field Details
-
VCONG
Speed threshold below which traffic is considered congested. -
B0
Maximum adjustment deceleration, e.g. when speed limit drops. -
SINGLETON
Singleton instance.
-
-
Method Details
-
get
- Specified by:
getin interfaceStateless<AccelerationNoRightOvertake>- Specified by:
getin interfaceSupplier<AccelerationNoRightOvertake>
-
accelerate
public void accelerate(SimpleOperationalPlan simplePlan, RelativeLane lane, Length mergeDistance, LaneBasedGtu gtu, LanePerception perception, CarFollowingModel carFollowingModel, Speed speed, Parameters params, SpeedLimitInfo speedLimitInfo) throws ParameterException, GtuException Description copied from interface:AccelerationIncentiveDetermine acceleration.- Specified by:
acceleratein interfaceAccelerationIncentive- Parameters:
simplePlan- simple plan to set the accelerationlane- lane on which to consider the accelerationmergeDistance- distance over which a lane change is impossiblegtu- gtuperception- perceptioncarFollowingModel- car-following modelspeed- current speedparams- parametersspeedLimitInfo- speed limit info- Throws:
ParameterException- on missing parameterGtuException- when there is a problem with the state of the GTU when planning a path
-