Class DirectedLaneMovementStep
java.lang.Object
org.opentrafficsim.road.gtu.lane.tactical.directedlanechange.DirectedLaneMovementStep
- All Implemented Interfaces:
Serializable
Acceleration, lane change decision and time until when this movement is committed.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers
- See Also:
-
Constructor Summary
ConstructorDescriptionDirectedLaneMovementStep
(AccelerationStep accelerationStep, LateralDirectionality direction) Construct a new LaneChangeModelResult. -
Method Summary
Modifier and TypeMethodDescriptionfinal AccelerationStep
getGfmr()
final LateralDirectionality
final String
toString()
-
Constructor Details
-
DirectedLaneMovementStep
Construct a new LaneChangeModelResult.- Parameters:
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
-
-
Method Details
-
getGfmr
- Returns:
- the acceleration step.
-
getLaneChange
- Returns:
- laneChange. 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
-
toString
-