Class AccelerationConflicts

java.lang.Object
org.opentrafficsim.road.gtu.tactical.lmrs.AccelerationConflicts
All Implemented Interfaces:
Blockable, AccelerationIncentive

public class AccelerationConflicts extends Object implements AccelerationIncentive, Blockable
Conflicts acceleration incentive.

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
  • Constructor Details

    • AccelerationConflicts

      public AccelerationConflicts()
      Constructor.
  • Method Details

    • accelerate

      public final 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
    • isBlocking

      public boolean isBlocking()
      Description copied from interface: Blockable
      Returns whether the GTU is blocking conflicts.
      Specified by:
      isBlocking in interface Blockable
      Returns:
      whether the GTU is blocking conflicts
    • toString

      public final String toString()
      Overrides:
      toString in class Object