Class ConflictUtil.ConflictPlans

java.lang.Object
org.opentrafficsim.road.gtu.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

    • 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