Interface OvertakingConditions
- All Known Implementing Classes:
OvertakingConditions.LeftAlwaysRightJam,OvertakingConditions.LeftAlwaysRightSpeed,OvertakingConditions.LeftAndRight,OvertakingConditions.LeftOnly,OvertakingConditions.LeftSet,OvertakingConditions.LeftSetRightJam,OvertakingConditions.LeftSetRightSpeed,OvertakingConditions.None,OvertakingConditions.RightAlwaysLeftJam,OvertakingConditions.RightAlwaysLeftSpeed,OvertakingConditions.RightOnly,OvertakingConditions.RightSet,OvertakingConditions.RightSetLeftJam,OvertakingConditions.RightSetLeftSpeed,OvertakingConditions.SameLaneBoth,OvertakingConditions.SameLaneLeft,OvertakingConditions.SameLaneRight
public interface OvertakingConditions
This class implements the overtaking conditions. Examples are:
- Overtaking on the left is allowed for all GTU types (not likely when there are e.g., both cars and bicycles in the model).
- A GTU type CAR can overtake a GTU type TRACTOR on the left on this road, but no other types of GTUs.
- When the speed of the GTU you try to overtake is lower than 50 km/h, you can overtake on the left.
- When the speed of the GTU you try to overtake is 25 km/h less than the maximum speed of the lane on which you and the other GTU are driving, you can overtake on the left or right.
- only overtake vehicles that have a maximum speed of under 25 km/h.
- Overtaking on the left is allowed for all GTU types, but overtaking on the right is also allowed when traffic density is below a certain number
- Overtaking on the left is allowed for all GTU types, but overtaking on the right is also allowed when the distance to a traffic light is less than 200 m
- Overtaking on the left and the right is allowed for all GTUs. This can e.g. be used on an American highway where all GTUs that are allowed on the highway can indeed overtake on the right or the left.
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.
$LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $,
initial version Sep 13, 2015
- Author:
- Alexander Verbraeck
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classOvertakingConditions.LeftAlwaysRightJamOvertaking on the left allowed for all GTUs, and overtaking on the right allowed when there is a traffic jam.static classOvertakingConditions.LeftAlwaysRightSpeedOvertaking on the left allowed for all GTUs, and overtaking on the right allowed under a given speed.static classOvertakingConditions.LeftAndRightOvertaking on both sides allowed.static classOvertakingConditions.LeftOnlyOvertaking on the left allowed for all GTUs.static classOvertakingConditions.LeftSetProvide a collection of GTUs that can overtake another collection of GTUs on the left side, but not vice versa.static classOvertakingConditions.LeftSetRightJamProvide a collection of GTUs that can overtake another collection of GTUs on the left side, but not vice versa.static classOvertakingConditions.LeftSetRightSpeedProvide a collection of GTUs that can overtake another collection of GTUs on the left side, but not vice versa.static classOvertakingConditions.NoneNo overtaking allowed.static classOvertakingConditions.RightAlwaysLeftJamOvertaking on the right allowed for all GTUs, and overtaking on the left allowed when there is a traffic jam.static classOvertakingConditions.RightAlwaysLeftSpeedOvertaking on the right allowed for all GTUs, and overtaking on the left allowed under a given speed.static classOvertakingConditions.RightOnlyOvertaking on the right allowed for all GTUs.static classOvertakingConditions.RightSetProvide a collection of GTUs that can overtake another collection of GTUs on the right side, but not vice versa.static classOvertakingConditions.RightSetLeftJamProvide a collection of GTUs that can overtake another collection of GTUs on the right side, but not vice versa.static classOvertakingConditions.RightSetLeftSpeedProvide a collection of GTUs that can overtake another collection of GTUs on the right side, but not vice versa.static classOvertakingConditions.SameLaneBothOvertaking on both sides allowed for all GTUs; they stay on the same lane (e.g., pedestrians).static classOvertakingConditions.SameLaneLeftOvertaking on the left allowed for all GTUs; they stay on the same lane (e.g., bicycles).static classOvertakingConditions.SameLaneRightOvertaking on the right allowed for all GTUs; they stay on the same lane (e.g., bicycles).