public class LMRS extends AbstractLaneBasedTacticalPlanner implements DesireBased, Synchronizable, Blockable
 Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. 
 BSD-style license. See OpenTrafficSim License.
 
Synchronizable.State| Modifier and Type | Field and Description | 
|---|---|
static org.opentrafficsim.base.parameters.ParameterTypeClassList<AccelerationIncentive> | 
ACCELERATION
Parameter type for acceleration incentives. 
 | 
static org.opentrafficsim.base.parameters.ParameterTypeClassList<MandatoryIncentive> | 
MANDATORY
Parameter type for mandatory lane change incentives. 
 | 
static org.opentrafficsim.base.parameters.ParameterTypeClassList<VoluntaryIncentive> | 
VOLUNTARY
Parameter type for voluntary lane change incentives. 
 | 
DT, LOOKAHEAD, TACTICAL_PLANNER| Constructor and Description | 
|---|
LMRS(CarFollowingModel carFollowingModel,
    LaneBasedGTU gtu,
    LanePerception lanePerception,
    Synchronization synchronization,
    Cooperation cooperation,
    GapAcceptance gapAcceptance,
    Tailgating tailGating)
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 latest desire from the specified incentive. 
 | 
Synchronizable.State | 
getSynchronizationState()
Returns the synchronization state. 
 | 
boolean | 
isBlocking()
Returns whether the GTU is blocking conflicts. 
 | 
void | 
setDefaultIncentives()
Sets the default lane change incentives. 
 | 
String | 
toString() | 
buildLanePathInfo, buildLanePathInfo, buildLinkListForward, concatenateNull, connectsToPath, determineNextSplit, getCarFollowingModel, getGtu, getPerception, noLaneDrop, setCarFollowingModelclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitchooseLaneAtSplit, okDistance, rightMostpublic static final org.opentrafficsim.base.parameters.ParameterTypeClassList<MandatoryIncentive> MANDATORY
public static final org.opentrafficsim.base.parameters.ParameterTypeClassList<VoluntaryIncentive> VOLUNTARY
public static final org.opentrafficsim.base.parameters.ParameterTypeClassList<AccelerationIncentive> ACCELERATION
public LMRS(CarFollowingModel carFollowingModel, LaneBasedGTU gtu, LanePerception lanePerception, Synchronization synchronization, Cooperation cooperation, GapAcceptance gapAcceptance, Tailgating tailGating)
carFollowingModel - Car-following model.gtu - GTUlanePerception - perceptionsynchronization - type of synchronizationcooperation - type of cooperationgapAcceptance - gap-acceptancetailGating - tail gatingpublic 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.base.parameters.ParameterException
generateOperationalPlan in interface org.opentrafficsim.core.gtu.plan.tactical.TacticalPlanner<LaneBasedGTU,LanePerception>org.opentrafficsim.core.gtu.plan.operational.OperationalPlanExceptionorg.opentrafficsim.core.gtu.GTUExceptionorg.opentrafficsim.core.network.NetworkExceptionorg.opentrafficsim.base.parameters.ParameterExceptionpublic final Desire getLatestDesire(Class<? extends Incentive> incentiveClass)
getLatestDesire in interface DesireBasedincentiveClass - Class; incentive classpublic Synchronizable.State getSynchronizationState()
getSynchronizationState in interface Synchronizablepublic boolean isBlocking()
isBlocking in interface BlockableCopyright © 2014–2018 Delft University of Technology. All rights reserved.