Class LaneCombinationList
java.lang.Object
org.opentrafficsim.road.network.conflict.LaneCombinationList
Contains lane combinations that should be treated differently.
Copyright (c) 2013-2026 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, Wouter Schakel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddLaneCombination(Lane lane1, Lane lane2) Add lane combination to the list.final voidaddLinkCombination(CrossSectionLink link1, CrossSectionLink link2) Add any combination of lanes on both links to the list.final booleanReturns whether the combination of the two lanes is included.final StringtoString()
-
Constructor Details
-
LaneCombinationList
public LaneCombinationList()Constructor.
-
-
Method Details
-
addLinkCombination
Add any combination of lanes on both links to the list. Order of the links does not matter.- Parameters:
link1- link 1link2- link 2
-
addLaneCombination
Add lane combination to the list. Order of the lanes does not matter.- Parameters:
lane1- lane 1lane2- lane 2
-
contains
Returns whether the combination of the two lanes is included. Order of the lanes does not matter.- Parameters:
lane1- lane 1lane2- lane 2- Returns:
- whether the combination of the two lanes is included
-
toString
-