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 ParameterTypeClassList<AccelerationIncentive> |
ACCELERATION
Parameter type for acceleration incentives.
|
static ParameterTypeClassList<MandatoryIncentive> |
MANDATORY
Parameter type for mandatory lane change incentives.
|
static 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.
|
OperationalPlan |
generateOperationalPlan(Time startTime,
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, setCarFollowingModel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
chooseLaneAtSplit, okDistance, rightMost
public static final ParameterTypeClassList<MandatoryIncentive> MANDATORY
public static final ParameterTypeClassList<VoluntaryIncentive> VOLUNTARY
public static final 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 OperationalPlan generateOperationalPlan(Time startTime, DirectedPoint locationAtStartTime) throws OperationalPlanException, GTUException, NetworkException, ParameterException
generateOperationalPlan
in interface TacticalPlanner<LaneBasedGTU,LanePerception>
OperationalPlanException
GTUException
NetworkException
ParameterException
public final Desire getLatestDesire(Class<? extends Incentive> incentiveClass)
getLatestDesire
in interface DesireBased
incentiveClass
- Class; incentive classpublic Synchronizable.State getSynchronizationState()
getSynchronizationState
in interface Synchronizable
public boolean isBlocking()
isBlocking
in interface Blockable
Copyright © 2014–2018 Delft University of Technology. All rights reserved.