Class NextSplitInfo

  • All Implemented Interfaces:
    Serializable

    public class NextSplitInfo
    extends Object
    implements Serializable
    This class provides information for an operational plan about the next location where the network splits. if the networks splits, the node where it splits, and the current lanes that lead to the right node are calculated.

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

    $LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $, initial version Dec 31, 2015
    Author:
    Alexander Verbraeck, Peter Knoppers
    See Also:
    Serialized Form
    • Constructor Detail

      • NextSplitInfo

        public NextSplitInfo​(Node nextSplitNode,
                             Set<Lane> correctCurrentLanes)
        Parameters:
        nextSplitNode - Node; the first subsequent node at which the route splits.
        correctCurrentLanes - Set<Lane>; the lane(s) and/or adjacent lane(s) on which the reference point of the GTU is registered that lead us in the direction of the route provided by the strategical planner.
      • NextSplitInfo

        public NextSplitInfo​(Node nextSplitNode,
                             Set<Lane> correctCurrentLanes,
                             LateralDirectionality requiredDirection)
        Parameters:
        nextSplitNode - Node; the first subsequent node at which the route splits.
        correctCurrentLanes - Set<Lane>; the lane(s) and/or adjacent lane(s) on which the reference point of the GTU is registered that lead us in the direction of the route provided by the strategical planner.
        requiredDirection - LateralDirectionality; required direction for lane changes for this split, beyond lane on current link
    • Method Detail

      • isSplit

        public final boolean isSplit()
        Returns:
        split indicates whether the route splits within the given distance.
      • getNextSplitNode

        public final Node getNextSplitNode()
        Returns:
        nextSplitNode the first subsequent node at which the route splits.
      • getCorrectCurrentLanes

        public final Set<Lane> getCorrectCurrentLanes()
        Returns:
        correctCurrentLanes the lane(s) and/or adjacent lane(s) on which the reference point of the GTU is registered that lead us in the direction of the route provided by the strategical planner.
      • getRequiredDirection

        public final LateralDirectionality getRequiredDirection()
        Returns:
        requiredDirection.