Class ConflictBuilderParallel.FixedWidthGenerator

java.lang.Object
org.opentrafficsim.road.network.lane.conflict.ConflictBuilderParallel.FixedWidthGenerator
All Implemented Interfaces:
ConflictBuilderParallel.WidthGenerator
Enclosing class:
ConflictBuilderParallel

public static class ConflictBuilderParallel.FixedWidthGenerator extends Object implements ConflictBuilderParallel.WidthGenerator
Generator with fixed width.

Copyright (c) 2013-2023 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
  • Constructor Details

    • FixedWidthGenerator

      public FixedWidthGenerator(Length width)
      Constructor with width.
      Parameters:
      width - Length; width
  • Method Details

    • getWidth

      public final double getWidth(Lane lane, double fraction)
      Returns the begin width of this lane.
      Specified by:
      getWidth in interface ConflictBuilderParallel.WidthGenerator
      Parameters:
      lane - Lane; lane
      fraction - double; fraction
      Returns:
      begin width of this lane
    • toString

      public final String toString()
      Overrides:
      toString in class Object