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 Object
implements ConflictBuilder.WidthGenerator
Generator with fixed width.
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
-
Constructor Summary
ConstructorDescriptionFixedWidthGenerator
(org.djunits.value.vdouble.scalar.Length width) Constructor with width. -
Method Summary
-
Constructor Details
-
FixedWidthGenerator
public FixedWidthGenerator(org.djunits.value.vdouble.scalar.Length width) Constructor with width.- Parameters:
width
- Length; width
-
-
Method Details
-
getWidth
Returns the begin width of this lane.- Specified by:
getWidth
in interfaceConflictBuilder.WidthGenerator
- Parameters:
lane
- Lane; lanefraction
- double; fraction- Returns:
- begin width of this lane
-
toString
-