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
  • Method Details

    • 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)