Uses of Class
org.opentrafficsim.trafficcontrol.TrafficControlException
-
Packages that use TrafficControlException Package Description org.opentrafficsim.trafficcontrol.ccol Coupling of OTS with external CCOL traffic controller.org.opentrafficsim.trafficcontrol.trafcod TrafCOD interpreter. -
-
Uses of TrafficControlException in org.opentrafficsim.trafficcontrol.ccol
Constructors in org.opentrafficsim.trafficcontrol.ccol that throw TrafficControlException Constructor Description CCOL(String id, String controlProgram, Set<TrafficLight> trafficLights, Set<TrafficLightSensor> sensors, org.opentrafficsim.core.dsol.OTSSimulator simulator)
Construct a new CCOL communication link. -
Uses of TrafficControlException in org.opentrafficsim.trafficcontrol.trafcod
Methods in org.opentrafficsim.trafficcontrol.trafcod that throw TrafficControlException Modifier and Type Method Description void
Variable. addOutput(TrafficLight trafficLight)
Add a traffic light to this variable.void
TrafCOD. checkConsistency()
Check the consistency of the traffic control program and perform initializations that require a completely built network.(package private) Variable
Variable. clone(org.opentrafficsim.core.network.OTSNetwork newNetwork, TrafCOD newTrafCOD)
int
Variable. conflictGroupRank()
Retrieve the rank of the conflict group that this Variable represents.boolean
Variable. decrementTimer(int timeStamp10)
Decrement the value of a timer.TrafficLightColor
Variable. getColor()
Retrieve the color for an output Variable.int
Variable. getTimerMax()
Retrieve the start value of this timer in units of 0.1 seconds (1 second is represented by the value 10).(package private) static String
TrafCOD. printRule(Object[] tokens, boolean printValues)
Print a tokenized rule.void
Variable. setEndSource(String endSource)
Set the description of the rule that ends this variable.void
Variable. setOutput(int colorValue)
Make this variable an output variable and set the color value.void
Variable. setStartSource(String startSource)
Set the description of the rule that starts this variable.void
Variable. setTimerMax(int value10)
Set the maximum time of this timer.void
Variable. subscribeToDetector(TrafficLightSensor sensor)
Link a detector variable to a sensor.Constructors in org.opentrafficsim.trafficcontrol.trafcod that throw TrafficControlException Constructor Description NameAndStream(String text, String locationDescription)
Parse a TrafCOD identifier and extract all required information.TrafCOD(String controllerName, URL trafCodURL, org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator, Container display, BufferedImage displayBackground, List<String> displayObjectLocations)
Construct a new TrafCOD traffic light controller.TrafCOD(String controllerName, List<String> trafCODRules, org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator, BufferedImage displayBackground, List<String> displayObjectLocations)
Construct a new TrafCOD traffic light controller.
-