Interface GeneratorPositions.RoadPosition
-
- All Known Implementing Classes:
GeneratorPositions.RoadPosition.BySpeed,GeneratorPositions.RoadPosition.ByValue
- Enclosing class:
- GeneratorPositions
public static interface GeneratorPositions.RoadPositionInterface 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 classGeneratorPositions.RoadPosition.BySpeedRoad position based on desired speed.static classGeneratorPositions.RoadPosition.ByValueFixed road position.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetValue(Speed desiredSpeed)Returns the road position (0.0 = right, 1.0 = left).
-
-
-
Method Detail
-
getValue
double getValue(Speed desiredSpeed)
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)
-
-