Class ConflictUtil.ConflictPlans
java.lang.Object
org.opentrafficsim.road.gtu.tactical.util.ConflictUtil.ConflictPlans
- All Implemented Interfaces:
Blockable
- Enclosing class:
- ConflictUtil
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the GTU is blocking conflicts.voidsetBlocking(boolean blocking) Sets the GTU as blocking conflicts or not.toString()
-
Constructor Details
-
ConflictPlans
public ConflictPlans()Constructor.
-
-
Method Details
-
isBlocking
public boolean isBlocking()Description copied from interface:BlockableReturns whether the GTU is blocking conflicts.- Specified by:
isBlockingin interfaceBlockable- 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
-