public static class ConflictBuilder.FixedWidthGenerator extends Object implements ConflictBuilder.WidthGenerator
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Constructor and Description |
---|
FixedWidthGenerator(Length width)
Constructor with width.
|
Modifier and Type | Method and Description |
---|---|
double |
getWidth(Lane lane,
double fraction)
Returns the begin width of this lane.
|
String |
toString() |
public FixedWidthGenerator(Length width)
width
- Length; widthpublic final double getWidth(Lane lane, double fraction)
getWidth
in interface ConflictBuilder.WidthGenerator
lane
- Lane; lanefraction
- double; fractionCopyright © 2014–2019 Delft University of Technology. All rights reserved.