1 package org.opentrafficsim.road.network.lane.conflict; 2 3 import nl.tudelft.simulation.dsol.simulators.SimulatorInterface; 4 5 /** 6 * A conflict rule provides the conflict priority. 7 * <p> 8 * Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br> 9 * BSD-style license. See <a href="http://opentrafficsim.org/node/13">OpenTrafficSim License</a>. 10 * <p> 11 * @version $Revision$, $LastChangedDate$, by $Author$, initial version 26 jan. 2017 <br> 12 * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a> 13 * @author <a href="http://www.tudelft.nl/pknoppers">Peter Knoppers</a> 14 * @author <a href="http://www.transport.citg.tudelft.nl">Wouter Schakel</a> 15 */ 16 public interface ConflictRule 17 { 18 19 /** 20 * Determines the priority for the given conflict. 21 * @param conflict conflict 22 * @return priority for the given conflict 23 */ 24 ConflictPriority determinePriority(Conflict conflict); 25 26 /** 27 * Creates a clone of the conflict rule. 28 * @param newSimulator new simulator 29 * @return clone of the conflict rule 30 */ 31 ConflictRule clone(SimulatorInterface.TimeDoubleUnit newSimulator); 32 33 }