public static class ConflictBuilder.FixedWidthGenerator extends Object implements ConflictBuilder.WidthGenerator
Copyright (c) 2013-2017 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(org.djunits.value.vdouble.scalar.Length width)
Constructor with width.
|
Modifier and Type | Method and Description |
---|---|
double |
getWidth(Lane lane,
double fraction)
Returns the begin width of this lane.
|
public FixedWidthGenerator(org.djunits.value.vdouble.scalar.Length width)
width
- double; widthpublic final double getWidth(Lane lane, double fraction)
getWidth
in interface ConflictBuilder.WidthGenerator
lane
- Lane; lanefraction
- double; fractionCopyright © 2014–2017 Delft University of Technology. All rights reserved.