Class NextSplitInfo
java.lang.Object
org.opentrafficsim.road.gtu.lane.tactical.NextSplitInfo
- All Implemented Interfaces:
java.io.Serializable
public class NextSplitInfo
extends java.lang.Object
implements java.io.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.
- Author:
- Alexander Verbraeck, Peter Knoppers
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description NextSplitInfo(Node nextSplitNode, java.util.Set<Lane> correctCurrentLanes)
NextSplitInfo(Node nextSplitNode, java.util.Set<Lane> correctCurrentLanes, LateralDirectionality requiredDirection)
-
Method Summary
Modifier and Type Method Description java.util.Set<Lane>
getCorrectCurrentLanes()
Node
getNextSplitNode()
LateralDirectionality
getRequiredDirection()
boolean
isSplit()
java.lang.String
toString()
-
Constructor Details
-
NextSplitInfo
- 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, java.util.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 Details
-
isSplit
public final boolean isSplit()- Returns:
- split indicates whether the route splits within the given distance.
-
getNextSplitNode
- Returns:
- nextSplitNode the first subsequent node at which the route splits.
-
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
- Returns:
- requiredDirection.
-
toString
public final java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-