public class LaneBasedGTUFollowingDirectedChangeTacticalPlanner extends AbstractLaneBasedTacticalPlanner
A lane change occurs when:
This lane-based tactical planner makes decisions based on headway (GTU following model). It can ask the strategic planner for assistance on the route to take when the network splits.
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 |
---|
LaneBasedGTUFollowingDirectedChangeTacticalPlanner(GTUFollowingModelOld carFollowingModel,
LaneBasedGTU gtu)
Instantiated a tactical planner with just GTU following behavior and no lane changes.
|
Modifier and Type | Method and Description |
---|---|
org.opentrafficsim.core.gtu.plan.operational.OperationalPlan |
generateOperationalPlan(org.djunits.value.vdouble.scalar.Time startTime,
nl.tudelft.simulation.language.d3.DirectedPoint locationAtStartTime) |
GTUFollowingModelOld |
getCarFollowingModelOld()
Returns the car-following model.
|
protected org.djunits.value.vdouble.scalar.Duration |
getDurationInLaneAfterLaneChange()
Get the duration to stay in a Lane after a lane change.
|
boolean |
isDestroyGtuOnFailure() |
void |
setDestroyGtuOnFailure(boolean destroyGtuOnFailure)
When a failure in planning occurs, should we destroy the GTU to avoid halting of the model?
|
protected void |
setDurationInLaneAfterLaneChange(org.djunits.value.vdouble.scalar.Duration durationInLaneAfterLaneChange)
Set the duration to stay in a Lane after a lane change.
|
void |
setNoLaneChange(org.djunits.value.vdouble.scalar.Duration noLaneChangeDuration)
Indicate that no lane change should happen for the indicated duration.
|
String |
toString() |
buildLanePathInfo, buildLanePathInfo, buildLinkListForward, buildPlanFromSimplePlan, connectsToPath, determineNextSplit, getCarFollowingModel, getGtu, getPerception, noLaneDrop, setCarFollowingModel
public LaneBasedGTUFollowingDirectedChangeTacticalPlanner(GTUFollowingModelOld carFollowingModel, LaneBasedGTU gtu)
carFollowingModel
- Car-following model.gtu
- GTUpublic final GTUFollowingModelOld getCarFollowingModelOld()
public final void setNoLaneChange(org.djunits.value.vdouble.scalar.Duration noLaneChangeDuration)
noLaneChangeDuration
- the duration for which no lane change should happen.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.network.NetworkException, org.opentrafficsim.core.gtu.GTUException, org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
org.opentrafficsim.core.gtu.plan.operational.OperationalPlanException
org.opentrafficsim.core.network.NetworkException
org.opentrafficsim.core.gtu.GTUException
org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
public final boolean isDestroyGtuOnFailure()
public final void setDestroyGtuOnFailure(boolean destroyGtuOnFailure)
destroyGtuOnFailure
- set destroyGtuOnFailure to true or falseprotected final org.djunits.value.vdouble.scalar.Duration getDurationInLaneAfterLaneChange()
protected final void setDurationInLaneAfterLaneChange(org.djunits.value.vdouble.scalar.Duration durationInLaneAfterLaneChange) throws org.opentrafficsim.core.gtu.GTUException
durationInLaneAfterLaneChange
- set duration to stay in a Lane after a lane changeorg.opentrafficsim.core.gtu.GTUException
- when durationInLaneAfterLaneChange less than zeroCopyright © 2014–2017 Delft University of Technology. All rights reserved.