Class LaneMovementStep

  • All Implemented Interfaces:
    Serializable

    public class LaneMovementStep
    extends Object
    implements Serializable
    Acceleration, lane change decision and time until when this movement is committed.

    Copyright (c) 2013-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
    BSD-style license. See OpenTrafficSim License.

    Version:
    $Revision: 1155 $, $LastChangedDate: 2015-07-26 01:01:13 +0200 (Sun, 26 Jul 2015) $, by $Author: averbraeck $, initial version 6 feb. 2015
    Author:
    Alexander Verbraeck, Peter Knoppers
    See Also:
    Serialized Form
    • Constructor Detail

      • LaneMovementStep

        public LaneMovementStep​(AccelerationStep gfmr,
                                LateralDirectionality laneChange)
        Construct a new LaneChangeModelResult.
        Parameters:
        gfmr - AccelerationStep; the acceleration and duration of validity of this result.
        laneChange - 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 Detail

      • getGfmr

        public final AccelerationStep getGfmr()
        Returns:
        the GTUModelFollowingResult.
      • getLaneChangeDirection

        public final LateralDirectionality getLaneChangeDirection()
        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