Interface Tailgating
-
public interface TailgatingInterface for LMRS tailgating behavior.Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 7 mrt. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Field Summary
Fields Modifier and Type Field Description static TailgatingNONENo tailgating.static TailgatingPRESSURETailgating based on speed pressure.static ParameterTypeDoubleRHOSocial pressure applied to the leader.static TailgatingRHO_ONLYNo tailgating, but social pressure exists.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static doublesocialPressure(Speed speed, Speed vCong, Speed desiredSpeed, Speed leaderSpeed, Speed vGain, Length headway, Length x0)Returns a normalized social pressure, equal to (vDesired - vLead) / vGain.voidtailgate(LanePerception perception, Parameters parameters)Apply tailgating.
-
-
-
Field Detail
-
RHO
static final ParameterTypeDouble RHO
Social pressure applied to the leader.
-
NONE
static final Tailgating NONE
No tailgating.
-
RHO_ONLY
static final Tailgating RHO_ONLY
No tailgating, but social pressure exists.
-
PRESSURE
static final Tailgating PRESSURE
Tailgating based on speed pressure.
-
-
Method Detail
-
socialPressure
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.- Parameters:
speed- Speed; speedvCong- Speed; speed indicating congestiondesiredSpeed- Speed; desired speedleaderSpeed- Speed; leader speedvGain- Speed; vGain parameterheadway- Length; headway to the leaderx0- Length; anticipation distance- Returns:
- normalized social pressure
-
tailgate
void tailgate(LanePerception perception, Parameters parameters)
Apply tailgating.- Parameters:
perception- LanePerception; perceptionparameters- Parameters; parameters
-
-