public interface OvertakingConditions
Copyright (c) 2013-2017 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
Modifier and Type | Interface and Description |
---|---|
static class |
OvertakingConditions.LeftAlwaysRightSpeed
Overtaking on the left allowed for all GTUs, and overtaking on the right allowed under a given speed.
|
static class |
OvertakingConditions.LeftAndRight
Overtaking on both sides allowed.
|
static class |
OvertakingConditions.LeftOnly
Overtaking on the left allowed for all GTUs.
|
static class |
OvertakingConditions.LeftSet
Provide a collection of GTUs that can overtake another collection of GTUs on the left side, but not vice versa.
|
static class |
OvertakingConditions.LeftSetRightSpeed
Provide a collection of GTUs that can overtake another collection of GTUs on the left side, but not vice versa.
|
static class |
OvertakingConditions.None
No overtaking allowed.
|
static class |
OvertakingConditions.RightAlwaysLeftSpeed
Overtaking on the right allowed for all GTUs, and overtaking on the left allowed under a given speed.
|
static class |
OvertakingConditions.RightOnly
Overtaking on the right allowed for all GTUs.
|
static class |
OvertakingConditions.RightSet
Provide a collection of GTUs that can overtake another collection of GTUs on the right side, but not vice versa.
|
static class |
OvertakingConditions.RightSetLeftSpeed
Provide a collection of GTUs that can overtake another collection of GTUs on the right side, but not vice versa.
|
static class |
OvertakingConditions.SameLaneBoth
Overtaking on both sides allowed for all GTUs; they stay on the same lane (e.g., pedestrians).
|
static class |
OvertakingConditions.SameLaneLeft
Overtaking on the left allowed for all GTUs; they stay on the same lane (e.g., bicycles).
|
static class |
OvertakingConditions.SameLaneRight
Overtaking on the right allowed for all GTUs; they stay on the same lane (e.g., bicycles).
|
Modifier and Type | Method and Description |
---|---|
OvertakingDirection |
checkOvertaking(Lane lane,
LaneBasedGTU gtu,
LaneBasedGTU predecessorGTU)
Implementation of the overtaking conditions.
|
OvertakingDirection checkOvertaking(Lane lane, LaneBasedGTU gtu, LaneBasedGTU predecessorGTU)
lane
- the lane for which to evaluate the overtaking conditionsgtu
- the GTU that might overtake another GTUpredecessorGTU
- the GTU in front of the GTU that might want to overtakeCopyright © 2014–2017 Delft University of Technology. All rights reserved.