Class ConflictBuilder.RelativeWidthGenerator
java.lang.Object
org.opentrafficsim.road.network.lane.conflict.ConflictBuilder.RelativeWidthGenerator
- All Implemented Interfaces:
- ConflictBuilder.WidthGenerator
- Enclosing class:
- ConflictBuilder
public static class ConflictBuilder.RelativeWidthGenerator
extends Object
implements ConflictBuilder.WidthGenerator
Generator with width factor on actual lane 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 SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
RelativeWidthGeneratorpublic RelativeWidthGenerator(double factor) Constructor with width factor.- Parameters:
- factor- double; width factor
 
 
- 
- 
Method Details- 
getWidthReturns the begin width of this lane.- Specified by:
- getWidthin interface- ConflictBuilder.WidthGenerator
- Parameters:
- lane- Lane; lane
- fraction- double; fraction
- Returns:
- begin width of this lane
 
- 
toString
 
-