public class DirectedLaneMovementStep 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 |
---|
DirectedLaneMovementStep(AccelerationStep accelerationStep,
org.opentrafficsim.core.network.LateralDirectionality direction)
Construct a new LaneChangeModelResult.
|
Modifier and Type | Method and Description |
---|---|
AccelerationStep |
getGfmr() |
org.opentrafficsim.core.network.LateralDirectionality |
getLaneChange() |
String |
toString() |
public DirectedLaneMovementStep(AccelerationStep accelerationStep, org.opentrafficsim.core.network.LateralDirectionality direction)
accelerationStep
- AccelerationStep; the acceleration and duration of validity of this result.direction
- LateralDirectionality; this has one of the values:
null: | Stay in the current lane |
LateralDirectionality.LEFT: | Move to the Left adjacent lane, as seen from the GTU in forward driving direction |
LateralDirectionality.RIGHT: | Move to the Right adjacent lane, as seen from the GTU in forward driving direction |
public final AccelerationStep getGfmr()
public final org.opentrafficsim.core.network.LateralDirectionality getLaneChange()
null: | Stay in the current lane |
LateralDirectionality.LEFT: | Move to the Left adjacent lane, as seen from the GTU in forward driving direction |
LateralDirectionality.RIGHT: | Move to the Right adjacent lane, as seen from the GTU in forward driving direction |
Copyright © 2014–2016 Delft University of Technology. All rights reserved.