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 | 
|---|---|
org.opentrafficsim.core.network.LateralDirectionality | 
getDirection()
Return lateral lane change direction. 
 | 
RelativeLane | 
getSecondLane(LaneBasedGTU gtu)
Second lane of lane change relative to the reference lane. 
 | 
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 | 
setLaneChangeDirectionality(org.opentrafficsim.core.network.LateralDirectionality laneChangeDirectionality)  | 
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 org.opentrafficsim.core.network.LateralDirectionality getDirection()
public final void setLaneChangeDirectionality(org.opentrafficsim.core.network.LateralDirectionality laneChangeDirectionality)
laneChangeDirectionality - set laneChangeDirectionality.public final RelativeLane getSecondLane(LaneBasedGTU gtu) throws org.opentrafficsim.core.gtu.plan.operational.OperationalPlanException
gtu - LaneBasedGTU; gtuorg.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–2017 Delft University of Technology. All rights reserved.