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-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Field and Description |
---|---|
protected static ParameterTypeAcceleration |
A
Acceleration parameter type.
|
protected static ParameterTypeAcceleration |
B
Comfortable deceleration parameter type.
|
protected static ParameterTypeDouble |
FSPEED
Speed limit adherance factor parameter type.
|
protected static ParameterTypeDuration |
T
Desired headway parameter type.
|
DT, LOOKAHEAD, TACTICAL_PLANNER
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 |
---|---|
OperationalPlan |
generateOperationalPlan(Time startTime,
DirectedPoint locationAtStartTime) |
GTUFollowingModelOld |
getCarFollowingModelOld()
Returns the car-following model.
|
protected 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(Duration durationInLaneAfterLaneChange)
Set the duration to stay in a Lane after a lane change.
|
void |
setNoLaneChange(Duration noLaneChangeDuration)
Indicate that no lane change should happen for the indicated duration.
|
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
protected static final ParameterTypeAcceleration A
protected static final ParameterTypeDuration T
protected static final ParameterTypeDouble FSPEED
protected static final ParameterTypeAcceleration B
public LaneBasedGTUFollowingDirectedChangeTacticalPlanner(GTUFollowingModelOld carFollowingModel, LaneBasedGTU gtu)
carFollowingModel
- Car-following model.gtu
- GTUpublic final GTUFollowingModelOld getCarFollowingModelOld()
public final void setNoLaneChange(Duration noLaneChangeDuration)
noLaneChangeDuration
- the duration for which no lane change should happen.public final OperationalPlan generateOperationalPlan(Time startTime, DirectedPoint locationAtStartTime) throws OperationalPlanException, NetworkException, GTUException, ParameterException
public final boolean isDestroyGtuOnFailure()
public final void setDestroyGtuOnFailure(boolean destroyGtuOnFailure)
destroyGtuOnFailure
- set destroyGtuOnFailure to true or falseprotected final Duration getDurationInLaneAfterLaneChange()
protected final void setDurationInLaneAfterLaneChange(Duration durationInLaneAfterLaneChange) throws GTUException
durationInLaneAfterLaneChange
- set duration to stay in a Lane after a lane changeGTUException
- when durationInLaneAfterLaneChange less than zeroCopyright © 2014–2018 Delft University of Technology. All rights reserved.