Class BusStopConflictRule
- java.lang.Object
-
- org.opentrafficsim.road.network.lane.conflict.BusStopConflictRule
-
- All Implemented Interfaces:
ConflictRule
public class BusStopConflictRule extends Object implements ConflictRule
Conflict rule for conflicts where busses enter the lane after a stop.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 27 jan. 2017
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Constructor Summary
Constructors Constructor Description BusStopConflictRule(SimulatorInterface.TimeDoubleUnit simulator)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete 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.String
toString()
-
-
-
Constructor Detail
-
BusStopConflictRule
public BusStopConflictRule(SimulatorInterface.TimeDoubleUnit simulator)
Constructor.- Parameters:
simulator
- SimulatorInterface.TimeDoubleUnit; simulator
-
-
Method Detail
-
determinePriority
public ConflictPriority determinePriority(Conflict conflict)
Determines the priority for the given conflict.- Specified by:
determinePriority
in interfaceConflictRule
- Parameters:
conflict
- Conflict; conflict- Returns:
- priority for the given conflict
-
clone
public final ConflictRule clone(SimulatorInterface.TimeDoubleUnit newSimulator)
Creates a clone of the conflict rule.- Specified by:
clone
in interfaceConflictRule
- Parameters:
newSimulator
- SimulatorInterface.TimeDoubleUnit; new simulator- Returns:
- clone of the conflict rule
-
-