Class DefaultConflictRule
java.lang.Object
org.opentrafficsim.road.network.lane.conflict.DefaultConflictRule
- All Implemented Interfaces:
ConflictRule
Default determination of priority based on link priority, or right-hand traffic. Note that this class is stateful as the
priorities are cached. So each conflict pair should receive a separate
DefaultConflictRule. This rule is only for use
on merge and crossing conflicts. For split conflicts there is a separate rule SplitConflictRule.
Copyright (c) 2013-2024 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 TypeMethodDescriptiondeterminePriority(Conflict conflict) Determines the priority for the given conflict.final StringtoString()
-
Constructor Details
-
DefaultConflictRule
public DefaultConflictRule()
-
-
Method Details
-
determinePriority
Determines the priority for the given conflict.- Specified by:
determinePriorityin interfaceConflictRule- Parameters:
conflict- Conflict; conflict- Returns:
- priority for the given conflict
-
toString
-