Class AccelerationBusStop
java.lang.Object
org.opentrafficsim.road.gtu.lane.tactical.lmrs.AccelerationBusStop
- All Implemented Interfaces:
Supplier<AccelerationIncentive>,Stateless<AccelerationIncentive>,AccelerationIncentive
public final class AccelerationBusStop
extends Object
implements AccelerationIncentive, Stateless<AccelerationIncentive>
Bus stop acceleration incentive.
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
Fields -
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()toString()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
-
Field Details
-
SINGLETON
Singleton instance.
-
-
Method Details
-
get
- Specified by:
getin interfaceStateless<AccelerationIncentive>- Specified by:
getin interfaceSupplier<AccelerationIncentive>
-
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
-
toString
-