Class ConflictUtil.ConflictPlans

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

public static final class ConflictUtil.ConflictPlans extends Object implements Blockable
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 factors coming into play in car-following models. Many other examples exist where a driver sticks to a certain plan.
  • Constructor Details

    • ConflictPlans

      public ConflictPlans()
      Constructor.
  • Method Details

    • getIndicatorIntent

      public TurnIndicatorIntent getIndicatorIntent()
      Return indicator intent.
      Returns:
      indicatorIntent.
    • getIndicatorObjectDistance

      public Length getIndicatorObjectDistance()
      Returns distance to indicator determining object.
      Returns:
      distance to indicator determining object.
    • setIndicatorIntent

      public void setIndicatorIntent(TurnIndicatorIntent intent, Length distance)
      Set indicator intent.
      Parameters:
      intent - indicator intent
      distance - distance to object pertaining to the turn indicator intent
    • 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
    • setBlocking

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

      public String toString()
      Overrides:
      toString in class Object