Interface ConflictRule
-
- All Known Implementing Classes:
BusStopConflictRule
,DefaultConflictRule
,SplitConflictRule
public interface ConflictRule
A conflict rule provides the conflict priority.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.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 26 jan. 2017
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConflictRule
clone(SimulatorInterface.TimeDoubleUnit newSimulator)
Creates a clone of the conflict rule.ConflictPriority
determinePriority(Conflict conflict)
Determines the priority for the given conflict.
-
-
-
Method Detail
-
determinePriority
ConflictPriority determinePriority(Conflict conflict)
Determines the priority for the given conflict.- Parameters:
conflict
- Conflict; conflict- Returns:
- priority for the given conflict
-
clone
ConflictRule clone(SimulatorInterface.TimeDoubleUnit newSimulator)
Creates a clone of the conflict rule.- Parameters:
newSimulator
- SimulatorInterface.TimeDoubleUnit; new simulator- Returns:
- clone of the conflict rule
-
-