public class LMRS extends AbstractLaneBasedTacticalPlanner
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 |
---|
LMRS(CarFollowingModel carFollowingModel,
LaneBasedGTU gtu,
LanePerception lanePerception,
Synchronization synchronization)
Constructor setting the car-following model.
|
Modifier and Type | Method and Description |
---|---|
void |
addAccelerationIncentive(AccelerationIncentive incentive)
Adds an acceleration incentive.
|
void |
addMandatoryIncentive(MandatoryIncentive incentive)
Adds a mandatory incentive.
|
void |
addVoluntaryIncentive(VoluntaryIncentive incentive)
Adds a voluntary incentive.
|
org.opentrafficsim.core.gtu.plan.operational.OperationalPlan |
generateOperationalPlan(org.djunits.value.vdouble.scalar.Time startTime,
nl.tudelft.simulation.language.d3.DirectedPoint locationAtStartTime) |
Desire |
getLatestDesire(Class<? extends Incentive> incentiveClass)
Returns the desire of the given incentive.
|
void |
setDefaultIncentives()
Sets the default lane change incentives.
|
String |
toString() |
buildLanePathInfo, buildLanePathInfo, buildLinkListForward, buildPlanFromSimplePlan, connectsToPath, determineNextSplit, getCarFollowingModel, getGtu, getPerception, noLaneDrop, setCarFollowingModel
public LMRS(CarFollowingModel carFollowingModel, LaneBasedGTU gtu, LanePerception lanePerception, Synchronization synchronization)
carFollowingModel
- Car-following model.gtu
- GTUlanePerception
- perceptionsynchronization
- type of synchronizationpublic final void addMandatoryIncentive(MandatoryIncentive incentive)
null
.incentive
- Incentive to add.public final void addVoluntaryIncentive(VoluntaryIncentive incentive)
null
.incentive
- Incentive to add.public final void addAccelerationIncentive(AccelerationIncentive incentive)
null
.incentive
- Incentive to add.public final void setDefaultIncentives()
public final org.opentrafficsim.core.gtu.plan.operational.OperationalPlan generateOperationalPlan(org.djunits.value.vdouble.scalar.Time startTime, nl.tudelft.simulation.language.d3.DirectedPoint locationAtStartTime) throws org.opentrafficsim.core.gtu.plan.operational.OperationalPlanException, org.opentrafficsim.core.gtu.GTUException, org.opentrafficsim.core.network.NetworkException, org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
org.opentrafficsim.core.gtu.plan.operational.OperationalPlanException
org.opentrafficsim.core.gtu.GTUException
org.opentrafficsim.core.network.NetworkException
org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
public Desire getLatestDesire(Class<? extends Incentive> incentiveClass)
incentiveClass
- class of incentiveCopyright © 2014–2017 Delft University of Technology. All rights reserved.