Class NextSplitInfo
java.lang.Object
org.opentrafficsim.road.gtu.lane.tactical.NextSplitInfo
- All Implemented Interfaces:
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-2023 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
ConstructorsConstructorDescriptionNextSplitInfo
(Node nextSplitNode, Set<Lane> correctCurrentLanes) NextSplitInfo
(Node nextSplitNode, Set<Lane> correctCurrentLanes, LateralDirectionality requiredDirection) -
Method Summary
Modifier and TypeMethodDescriptionfinal Node
final LateralDirectionality
final boolean
isSplit()
final 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, 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
-