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 Summary
Constructors Constructor Description ConflictPlans()
-
Method Summary
Modifier and Type Method Description TurnIndicatorIntent
getIndicatorIntent()
Length
getIndicatorObjectDistance()
boolean
isBlocking()
Returns whether the GTU is blocking conflicts.void
setBlocking(boolean blocking)
Sets the GTU as blocking conflicts or not.void
setIndicatorIntent(TurnIndicatorIntent intent, Length distance)
java.lang.String
toString()
-
Constructor Details
-
ConflictPlans
public ConflictPlans()
-
-
Method Details
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
getIndicatorIntent
- Returns:
- indicatorIntent.
-
getIndicatorObjectDistance
- Returns:
- indicatorObjectDistance.
-
setIndicatorIntent
- Parameters:
intent
- TurnIndicatorIntent; indicator intentdistance
- 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 interfaceBlockable
- 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
-