Class ConflictBuilder.FixedWidthGenerator

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

public static class ConflictBuilder.FixedWidthGenerator
extends java.lang.Object
implements ConflictBuilder.WidthGenerator
Generator with fixed width.

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 16 dec. 2016
Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Constructor Summary

    Constructors 
    Constructor Description
    FixedWidthGenerator​(Length width)
    Constructor with width.
  • Method Summary

    Modifier and Type Method Description
    double getWidth​(Lane lane, double fraction)
    Returns the begin width of this lane.
    java.lang.String toString()

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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 ConflictBuilder.WidthGenerator
      Parameters:
      lane - Lane; lane
      fraction - double; fraction
      Returns:
      begin width of this lane
    • toString

      public final java.lang.String toString()
      Overrides:
      toString in class java.lang.Object