Interface GeneratorPositions.RoadPosition
- All Known Implementing Classes:
GeneratorPositions.RoadPosition.BySpeed
,GeneratorPositions.RoadPosition.ByValue
- Enclosing class:
- GeneratorPositions
public static interface GeneratorPositions.RoadPosition
Interface for preferred road position for a lane bias.
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 15 jan. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
GeneratorPositions.RoadPosition.BySpeed
Road position based on desired speed.static class
GeneratorPositions.RoadPosition.ByValue
Fixed road position. -
Method Summary
-
Method Details
-
getValue
Returns the road position (0.0 = right, 1.0 = left).- Parameters:
desiredSpeed
- Speed; desired speed at the generator- Returns:
- road position (0.0 = right, 1.0 = left)
-