public static class LaneOperationalPlanBuilder.LaneChange extends Object implements Serializable
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Constructor and Description |
---|
LaneChange() |
Modifier and Type | Method and Description |
---|---|
RelativeLane |
getTargetLane()
Target lane of lane change.
|
boolean |
isChangingLane()
Return whether the GTU is changing lane.
|
boolean |
isChangingLeft()
Return whether the GTU is changing left.
|
boolean |
isChangingRight()
Return whether the GTU is changing right.
|
void |
setLaneChangeDuration(org.djunits.value.vdouble.scalar.Duration laneChangeDuration)
Sets the duration for a lane change.
|
String |
toString() |
(package private) double |
updateAndGetFraction(org.djunits.value.vdouble.scalar.Duration timeStep,
org.opentrafficsim.core.network.LateralDirectionality laneChangeDirection,
LaneBasedGTU gtu)
Update the lane change and return the lateral fraction for the end of the coming time step.
|
public final boolean isChangingLane()
public final boolean isChangingLeft()
public final boolean isChangingRight()
public final RelativeLane getTargetLane() throws org.opentrafficsim.core.gtu.plan.operational.OperationalPlanException
org.opentrafficsim.core.gtu.plan.operational.OperationalPlanException
- If no lane change is being performed.public final void setLaneChangeDuration(org.djunits.value.vdouble.scalar.Duration laneChangeDuration)
laneChangeDuration
- total lane change durationfinal double updateAndGetFraction(org.djunits.value.vdouble.scalar.Duration timeStep, org.opentrafficsim.core.network.LateralDirectionality laneChangeDirection, LaneBasedGTU gtu)
timeStep
- coming time step durationlaneChangeDirection
- direction of lane changegtu
- GTUCopyright © 2014–2016 Delft University of Technology. All rights reserved.