public interface Tailgating
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.
Modifier and Type | Field and Description |
---|---|
static Tailgating |
NONE
No tailgating.
|
static Tailgating |
PRESSURE
Tailgating based on speed pressure.
|
static ParameterTypeDouble |
RHO
Social pressure applied to the leader.
|
static Tailgating |
RHO_ONLY
No tailgating, but social pressure exists.
|
Modifier and Type | Method and Description |
---|---|
static double |
socialPressure(Speed speed,
Speed vCong,
Speed desiredSpeed,
Speed leaderSpeed,
Speed vGain,
Length headway,
Length x0)
Returns a normalized social pressure, equal to (vDesired - vLead) / vGain.
|
void |
tailgate(LanePerception perception,
Parameters parameters)
Apply tailgating.
|
static final ParameterTypeDouble RHO
static final Tailgating NONE
static final Tailgating RHO_ONLY
static final Tailgating PRESSURE
static double socialPressure(Speed speed, Speed vCong, Speed desiredSpeed, Speed leaderSpeed, Speed vGain, Length headway, Length x0)
speed
- Speed; speedvCong
- Speed; speed indicating congestiondesiredSpeed
- Speed; desired speedleaderSpeed
- Speed; leader speedvGain
- Speed; vGain parameterheadway
- Length; headway to the leaderx0
- Length; anticipation distancevoid tailgate(LanePerception perception, Parameters parameters)
perception
- LanePerception; perceptionparameters
- Parameters; parametersCopyright © 2014–2019 Delft University of Technology. All rights reserved.