Interface Tailgating
public interface Tailgating
Interface for LMRS tailgating behavior.
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
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Tailgating
No tailgating.static final Tailgating
Tailgating based on speed pressure.static final org.opentrafficsim.base.parameters.ParameterTypeDouble
Social pressure applied to the leader.static final Tailgating
No tailgating, but social pressure exists. -
Method Summary
Modifier and TypeMethodDescriptionstatic double
socialPressure
(org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Speed vCong, org.djunits.value.vdouble.scalar.Speed desiredSpeed, org.djunits.value.vdouble.scalar.Speed leaderSpeed, org.djunits.value.vdouble.scalar.Speed vGain, org.djunits.value.vdouble.scalar.Length headway, org.djunits.value.vdouble.scalar.Length x0) Returns a normalized social pressure, equal to (vDesired - vLead) / vGain.void
tailgate
(LanePerception perception, org.opentrafficsim.base.parameters.Parameters parameters) Apply tailgating.
-
Field Details
-
RHO
static final org.opentrafficsim.base.parameters.ParameterTypeDouble RHOSocial pressure applied to the leader. -
NONE
No tailgating. -
RHO_ONLY
No tailgating, but social pressure exists. -
PRESSURE
Tailgating based on speed pressure.
-
-
Method Details
-
tailgate
Apply tailgating.- Parameters:
perception
- LanePerception; perceptionparameters
- Parameters; parameters
socialPressure
speed
- Speed; speedvCong
- Speed; speed indicating congestiondesiredSpeed
- Speed; desired speedleaderSpeed
- Speed; leader speedvGain
- Speed; vGain parameterheadway
- Length; headway to the leaderx0
- Length; anticipation distance