Interface GeneratorPositions.RoadPosition
- All Known Implementing Classes:
 GeneratorPositions.RoadPosition.BySpeed,GeneratorPositions.RoadPosition.ByValue
- Enclosing interface:
 - GeneratorPositions
 
public static interface GeneratorPositions.RoadPosition
Interface for preferred road position for a lane bias.
 
 Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
 
 BSD-style license. See OpenTrafficSim License.
 
- Author:
 - Alexander Verbraeck, Peter Knoppers, Wouter Schakel
 
- 
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classRoad position based on desired speed.static classFixed road position. - 
Method Summary
Modifier and TypeMethodDescriptiondoublegetValue(org.djunits.value.vdouble.scalar.Speed desiredSpeed) Returns the road position (0.0 = right, 1.0 = left). 
- 
Method Details
- 
getValue
double getValue(org.djunits.value.vdouble.scalar.Speed desiredSpeed) Returns the road position (0.0 = right, 1.0 = left).- Parameters:
 desiredSpeed- desired speed at the generator- Returns:
 - road position (0.0 = right, 1.0 = left)
 
 
 -