public final class SafeLaneChange extends Object
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Modifier and Type | Method and Description |
|---|---|
static boolean |
safe(GTU<?> referenceGTU,
GTU<?> otherGTU,
DoubleScalar.Rel<AccelerationUnit> maximumDeceleration,
DoubleScalar.Abs<SpeedUnit> speedLimit)
Determine if dangerous decelerations are incurred if a GTU changes into a lane where another GTU is driving.
|
public static boolean safe(GTU<?> referenceGTU, GTU<?> otherGTU, DoubleScalar.Rel<AccelerationUnit> maximumDeceleration, DoubleScalar.Abs<SpeedUnit> speedLimit)
referenceGTU - GTU; the gtu following model of this gtu is used to determine the needed acceleration (deceleration).otherGTU - GTU; the gtu driving in the other lanemaximumDeceleration - DoubleScalar.Abs<AccelerationUnit>; the maximum (considered safe) deceleration (must be
positive; something on the order of 2m/s/s)speedLimit - DoubleScalar.Abs<SpeedUnit>; the speed limitCopyright © 2014–2015 Delft University of Technology. All rights reserved.