Class ConflictUtil.ConflictPlans
java.lang.Object
org.opentrafficsim.road.gtu.lane.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 TypeMethodDescriptionReturn indicator intent.Returns distance to indicator determining object.booleanReturns whether the GTU is blocking conflicts.voidsetBlocking(boolean blocking) Sets the GTU as blocking conflicts or not.voidsetIndicatorIntent(TurnIndicatorIntent intent, Length distance) Set indicator intent.toString()
-
Constructor Details
-
ConflictPlans
public ConflictPlans()Constructor.
-
-
Method Details
-
getIndicatorIntent
Return indicator intent.- Returns:
- indicatorIntent.
-
getIndicatorObjectDistance
Returns distance to indicator determining object.- Returns:
- distance to indicator determining object.
-
setIndicatorIntent
Set indicator intent.- Parameters:
intent- indicator intentdistance- distance to object pertaining to the turn indicator intent
-
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
-