Class AccelerationConflicts
java.lang.Object
org.opentrafficsim.road.gtu.lane.tactical.lmrs.AccelerationConflicts
- All Implemented Interfaces:
Blockable
,AccelerationIncentive
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal 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) Determine acceleration.boolean
Returns whether the GTU is blocking conflicts.final String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opentrafficsim.road.gtu.lane.tactical.lmrs.AccelerationIncentive
onRoute
-
Constructor Details
-
AccelerationConflicts
public AccelerationConflicts()
-
-
Method Details
-
accelerate
public final 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 org.opentrafficsim.base.parameters.ParameterException, GtuException Description copied from interface:AccelerationIncentive
Determine acceleration.- Specified by:
accelerate
in 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:
org.opentrafficsim.base.parameters.ParameterException
- on missing parameterGtuException
- when there is a problem with the state of the GTU when planning a path
-
isBlocking
public boolean isBlocking()Description copied from interface:Blockable
Returns whether the GTU is blocking conflicts.- Specified by:
isBlocking
in interfaceBlockable
- Returns:
- whether the GTU is blocking conflicts
-
toString
-