public static class ConflictBuilder.RelativeWidthGenerator 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 |
---|
RelativeWidthGenerator(double factor)
Constructor with width factor.
|
Modifier and Type | Method and Description |
---|---|
double |
getWidth(Lane lane,
double fraction)
Returns the begin width of this lane.
|
String |
toString() |
public RelativeWidthGenerator(double factor)
factor
- double; width factorpublic 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.