Class OvertakingConditions.RightSet
- java.lang.Object
-
- org.opentrafficsim.road.network.lane.changing.OvertakingConditions.RightSet
-
- All Implemented Interfaces:
Serializable
,OvertakingConditions
- Enclosing interface:
- OvertakingConditions
public static class OvertakingConditions.RightSet extends Object implements OvertakingConditions, Serializable
Provide a collection of GTUs that can overtake another collection of GTUs on the right side, but not vice versa. Example: {CAR, TRUCK, BUS} can overtake {BICYCLE, SCOOTER}, or {CAR, TRUCK, BUS} can overtake {CAR, TRUCK, BUS, BICYCLE, SCOOTER}. In the latter case, cars, trucks and busses can overtake all other GTUs, but bicycles and scooters cannot overtake cars, trucks or busses. Another example is a lane where cars and motors can overtake all other road users, but trucks are not allowed to overtake. In that case, we would allow {CAR, MOTOR} to overtake {ALL} or {CAR, MOTOR} to overtake {CAR, MOTOR, TRUCK} in that lane.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
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opentrafficsim.road.network.lane.changing.OvertakingConditions
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
-
-
Constructor Summary
Constructors Constructor Description RightSet(Collection<GTUType> overtakingGTUs, Collection<GTUType> overtakenGTUs)
Provide a collection of GTUs that can overtake another collection of GTUs on the right, but not vice versa.
-
-
-
Constructor Detail
-
RightSet
public RightSet(Collection<GTUType> overtakingGTUs, Collection<GTUType> overtakenGTUs)
Provide a collection of GTUs that can overtake another collection of GTUs on the right, but not vice versa. Example: {CAR, TRUCK, BUS} can overtake {BICYCLE, SCOOTER}, or {CAR, TRUCK, BUS} can overtake {CAR, TRUCK, BUS, BICYCLE, SCOOTER}, or {CAR, TRUCK, BUS} can overtake {TRACTOR}.- Parameters:
overtakingGTUs
- Collection<GTUType>; the GTUs that can overtake a set of other GTUs, e.g., CAR, TRUCK.overtakenGTUs
- Collection<GTUType>; the GTUs that can be overtaken, e.g., BICYCLE, SCOOTER.
-
-