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

    Fields
    Modifier and Type
    Field
    Description
    static 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 Type
    Method
    Description
    static 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 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 Details

    • socialPressure

      static 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.
      Parameters:
      speed - Speed; speed
      vCong - Speed; speed indicating congestion
      desiredSpeed - Speed; desired speed
      leaderSpeed - Speed; leader speed
      vGain - Speed; vGain parameter
      headway - Length; headway to the leader
      x0 - Length; anticipation distance
      Returns:
      normalized social pressure
    • tailgate

      void tailgate(LanePerception perception, org.opentrafficsim.base.parameters.Parameters parameters)
      Apply tailgating.
      Parameters:
      perception - LanePerception; perception
      parameters - Parameters; parameters