Class AccelerationNoSlowLaneOvertake

java.lang.Object
org.opentrafficsim.road.gtu.tactical.lmrs.AccelerationNoSlowLaneOvertake
All Implemented Interfaces:
AccelerationIncentive

public final class AccelerationNoSlowLaneOvertake extends Object implements AccelerationIncentive
Makes a GTU follow leaders in the left lane, with limited deceleration.

Copyright (c) 2013-2026 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 Details

    • VCONG

      public static final ParameterTypeSpeed VCONG
      Speed threshold below which traffic is considered congested.
    • B0

      public static final ParameterTypeAcceleration B0
      Maximum adjustment deceleration, e.g. when speed limit drops.
  • Constructor Details

    • AccelerationNoSlowLaneOvertake

      public AccelerationNoSlowLaneOvertake(Supplier<Desire> getMandatoryDesire)
      Constructor.
      Parameters:
      getMandatoryDesire - supplier of mandatory desire from the model
  • Method Details

    • accelerate

      public org.djunits.value.vdouble.scalar.Acceleration accelerate(TacticalContextEgo context, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance) throws ParameterException, GtuException
      Description copied from interface: AccelerationIncentive
      Determine acceleration.
      Specified by:
      accelerate in interface AccelerationIncentive
      Parameters:
      context - tactical information such as parameters and car-following model
      lane - lane on which to consider the acceleration
      mergeDistance - distance over which a lane change is impossible
      Returns:
      acceleration
      Throws:
      ParameterException - on missing parameter
      GtuException - when there is a problem with the state of the GTU when planning a path