public class DefaultConflictRule extends Object implements ConflictRule
DefaultConflictRule
. This rule is only for use
on merge and crossing conflicts. For split conflicts there is a separate rule SplitConflictRule
.
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Constructor and Description |
---|
DefaultConflictRule() |
Modifier and Type | Method and Description |
---|---|
ConflictRule |
clone(SimulatorInterface.TimeDoubleUnit newSimulator)
Creates a clone of the conflict rule.
|
ConflictPriority |
determinePriority(Conflict conflict)
Determines the priority for the given conflict.
|
String |
toString() |
public ConflictPriority determinePriority(Conflict conflict)
determinePriority
in interface ConflictRule
conflict
- Conflict; conflictpublic final ConflictRule clone(SimulatorInterface.TimeDoubleUnit newSimulator)
clone
in interface ConflictRule
newSimulator
- SimulatorInterface.TimeDoubleUnit; new simulatorCopyright © 2014–2019 Delft University of Technology. All rights reserved.