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
FieldsModifier and TypeFieldDescriptionstatic final TailgatingNo tailgating.static final TailgatingTailgating based on speed pressure.static final org.opentrafficsim.base.parameters.ParameterTypeDoubleSocial pressure applied to the leader.static final TailgatingNo tailgating, but social pressure exists. -
Method Summary
Modifier and TypeMethodDescriptionstatic doublesocialPressure(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.voidtailgate(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- perceptionparameters- parameters
socialPressure
speed- speedvCong- speed indicating congestiondesiredSpeed- desired speedleaderSpeed- leader speedvGain- vGain parameterheadway- headway to the leaderx0- anticipation distance