Class ConflictUtil.ConflictPlans

java.lang.Object
org.opentrafficsim.road.gtu.lane.tactical.util.ConflictUtil.ConflictPlans
All Implemented Interfaces:
java.io.Serializable, Blockable
Enclosing class:
ConflictUtil

public static final class ConflictUtil.ConflictPlans
extends java.lang.Object
implements Blockable, java.io.Serializable
Holds the tactical plans of a driver considering conflicts. These are remembered for consistency. For instance, if the decision is made to yield as current deceleration suggests it's safe to do so, but the trajectory for stopping in front of the conflict results in deceleration slightly above what is considered safe deceleration, the plan should not be abandoned. Decelerations above what is considered safe deceleration may result due to numerical overshoot or other factor coming into play in car-following models. Many other examples exist where a driver sticks to a certain plan.

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 Jun 7, 2016
Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
See Also:
Serialized Form
  • Constructor Details

  • Method Details

    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • getIndicatorIntent

      public TurnIndicatorIntent getIndicatorIntent()
      Returns:
      indicatorIntent.
    • getIndicatorObjectDistance

      public Length getIndicatorObjectDistance()
      Returns:
      indicatorObjectDistance.
    • setIndicatorIntent

      public void setIndicatorIntent​(TurnIndicatorIntent intent, Length distance)
      Parameters:
      intent - TurnIndicatorIntent; indicator intent
      distance - Length; distance to object pertaining to the turn indicator intent
    • isBlocking

      public boolean isBlocking()
      Returns whether the GTU is blocking conflicts.
      Specified by:
      isBlocking in interface Blockable
      Returns:
      boolean; whether the GTU is blocking conflicts
    • setBlocking

      public void setBlocking​(boolean blocking)
      Sets the GTU as blocking conflicts or not.
      Parameters:
      blocking - boolean; whether the GTU is blocking conflicts