Class BusStopConflictRule
java.lang.Object
org.opentrafficsim.road.network.lane.conflict.BusStopConflictRule
- All Implemented Interfaces:
ConflictRule
Conflict rule for conflicts where busses enter the lane after a stop.
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
ConstructorDescriptionBusStopConflictRule
(OtsSimulatorInterface simulator, GtuType busType) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiondeterminePriority
(Conflict conflict) Determines the priority for the given conflict.final String
toString()
-
Constructor Details
-
BusStopConflictRule
Constructor.- Parameters:
simulator
- OtsSimulatorInterface; simulatorbusType
- GtuType; GTU type for buses.
-
-
Method Details
-
determinePriority
Determines the priority for the given conflict.- Specified by:
determinePriority
in interfaceConflictRule
- Parameters:
conflict
- Conflict; conflict- Returns:
- priority for the given conflict
-
toString
-