All Superinterfaces:
LmrsParameters

public interface Cooperation extends LmrsParameters
Different forms of cooperation.

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 Details

    • PASSIVE

      static final Cooperation PASSIVE
      Simple passive cooperation.
    • PASSIVE_MOVING

      static final Cooperation PASSIVE_MOVING
      Same as passive cooperation, except that cooperation is fully ignored if the potential lane changer brakes heavily.
    • ACTIVE

      static final Cooperation ACTIVE
      Cooperation similar to the default, with nuanced differences of when to ignore.
  • Method Details

    • cooperate

      org.djunits.value.vdouble.scalar.Acceleration cooperate(LanePerception perception, org.opentrafficsim.base.parameters.Parameters params, SpeedLimitInfo sli, CarFollowingModel cfm, LateralDirectionality lat, Desire ownDesire) throws org.opentrafficsim.base.parameters.ParameterException, OperationalPlanException
      Determine acceleration for cooperation.
      Parameters:
      perception - LanePerception; perception
      params - Parameters; parameters
      sli - SpeedLimitInfo; speed limit info
      cfm - CarFollowingModel; car-following model
      lat - LateralDirectionality; lateral direction for cooperation
      ownDesire - Desire; own lane change desire
      Returns:
      acceleration for synchronization
      Throws:
      org.opentrafficsim.base.parameters.ParameterException - if a parameter is not defined
      OperationalPlanException - perception exception