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 Classes
    Modifier and Type
    Interface
    Description
    static class 
    Road position based on desired speed.
    static class 
    Fixed road position.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    getValue(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 - Speed; desired speed at the generator
      Returns:
      road position (0.0 = right, 1.0 = left)