public static final class ConflictUtil.ConflictPlans extends Object implements Blockable, Serializable
 Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
 
 BSD-style license. See OpenTrafficSim License.
 
| Constructor and Description | 
|---|
ConflictPlans()  | 
| Modifier and Type | Method and Description | 
|---|---|
(package private) void | 
cleanPlans()
Clean any yield plan that was no longer kept active in the last evaluation of conflicts. 
 | 
(package private) org.djunits.value.vdouble.scalar.Time | 
getArrivalTime(AbstractHeadwayGTU gtu)
Returns the estimated arrival time of given GTU. 
 | 
org.opentrafficsim.core.gtu.TurnIndicatorIntent | 
getIndicatorIntent()  | 
org.djunits.value.vdouble.scalar.Length | 
getIndicatorObjectDistance()  | 
boolean | 
isBlocking()
Returns whether the GTU is blocking conflicts. 
 | 
(package private) boolean | 
isStopPhaseApproach(HeadwayStopLine stopLine)  | 
(package private) boolean | 
isStopPhaseRun(HeadwayStopLine stopLine)  | 
(package private) boolean | 
isStopPhaseYield(HeadwayStopLine stopLine)  | 
(package private) void | 
setArrivalTime(AbstractHeadwayGTU gtu,
              org.djunits.value.vdouble.scalar.Time time)
Sets the estimated arrival time of a GTU. 
 | 
void | 
setBlocking(boolean blocking)
Sets the GTU as blocking conflicts or not. 
 | 
void | 
setIndicatorIntent(org.opentrafficsim.core.gtu.TurnIndicatorIntent intent,
                  org.djunits.value.vdouble.scalar.Length distance)  | 
(package private) void | 
setStopPhaseApproach(HeadwayStopLine stopLine)
Sets the current phase to 'approach' for the given stop line. 
 | 
(package private) void | 
setStopPhaseRun(HeadwayStopLine stopLine)
Sets the current phase to 'run' for the given stop line. 
 | 
(package private) void | 
setStopPhaseYield(HeadwayStopLine stopLine)
Sets the current phase to 'yield' for the given stop line. 
 | 
String | 
toString() | 
void cleanPlans()
void setArrivalTime(AbstractHeadwayGTU gtu, org.djunits.value.vdouble.scalar.Time time)
gtu - GTUtime - estimated arrival timeorg.djunits.value.vdouble.scalar.Time getArrivalTime(AbstractHeadwayGTU gtu)
gtu - GTUvoid setStopPhaseApproach(HeadwayStopLine stopLine)
stopLine - stop linevoid setStopPhaseYield(HeadwayStopLine stopLine)
stopLine - stop lineRuntimeException - if the phase was not set to approach beforevoid setStopPhaseRun(HeadwayStopLine stopLine)
stopLine - stop lineRuntimeException - if the phase was not set to approach beforeboolean isStopPhaseApproach(HeadwayStopLine stopLine)
stopLine - stop lineboolean isStopPhaseYield(HeadwayStopLine stopLine)
stopLine - stop lineboolean isStopPhaseRun(HeadwayStopLine stopLine)
stopLine - stop linepublic org.opentrafficsim.core.gtu.TurnIndicatorIntent getIndicatorIntent()
public org.djunits.value.vdouble.scalar.Length getIndicatorObjectDistance()
public void setIndicatorIntent(org.opentrafficsim.core.gtu.TurnIndicatorIntent intent,
                               org.djunits.value.vdouble.scalar.Length distance)
intent - indicator intentdistance - distance to object pertaining to the turn indicator intentpublic boolean isBlocking()
isBlocking in interface Blockablepublic void setBlocking(boolean blocking)
blocking - boolean; whether the GTU is blocking conflictsCopyright © 2014–2018 Delft University of Technology. All rights reserved.