Interface Tailgating


  • public interface Tailgating
    Interface 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 Detail

      • 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; 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,
                      Parameters parameters)
        Apply tailgating.
        Parameters:
        perception - LanePerception; perception
        parameters - Parameters; parameters