public class AccelerationConflicts extends Object implements AccelerationIncentive, Blockable
Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Constructor and Description |
---|
AccelerationConflicts() |
Modifier and Type | Method and Description |
---|---|
void |
accelerate(SimpleOperationalPlan simplePlan,
RelativeLane lane,
LaneBasedGTU gtu,
LanePerception perception,
CarFollowingModel carFollowingModel,
org.djunits.value.vdouble.scalar.Speed speed,
org.opentrafficsim.base.parameters.Parameters params,
SpeedLimitInfo speedLimitInfo)
Determine acceleration.
|
boolean |
isBlocking()
Returns whether the GTU is blocking conflicts.
|
String |
toString() |
public final void accelerate(SimpleOperationalPlan simplePlan, RelativeLane lane, LaneBasedGTU gtu, LanePerception perception, CarFollowingModel carFollowingModel, org.djunits.value.vdouble.scalar.Speed speed, org.opentrafficsim.base.parameters.Parameters params, SpeedLimitInfo speedLimitInfo) throws org.opentrafficsim.core.gtu.plan.operational.OperationalPlanException, org.opentrafficsim.base.parameters.ParameterException, org.opentrafficsim.core.gtu.GTUException
accelerate
in interface AccelerationIncentive
simplePlan
- simple plan to set the accelerationlane
- lane on which to consider the accelerationgtu
- gtuperception
- perceptioncarFollowingModel
- car-following modelspeed
- current speedparams
- parametersspeedLimitInfo
- speed limit infoorg.opentrafficsim.core.gtu.plan.operational.OperationalPlanException
- in case of an errororg.opentrafficsim.base.parameters.ParameterException
- on missing parameterorg.opentrafficsim.core.gtu.GTUException
- when there is a problem with the state of the GTU when planning a pathpublic boolean isBlocking()
isBlocking
in interface Blockable
Copyright © 2014–2018 Delft University of Technology. All rights reserved.