Package | Description |
---|---|
org.opentrafficsim.trafficcontrol.trafcod |
TrafCOD interpreter.
|
Modifier and Type | Method and Description |
---|---|
void |
Variable.addOutput(org.opentrafficsim.road.network.lane.object.trafficlight.TrafficLight trafficLight)
Add a traffic light to this variable.
|
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.
|
org.opentrafficsim.road.network.lane.object.trafficlight.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(org.opentrafficsim.road.network.lane.object.sensor.TrafficLightSensor sensor)
Link a detector variable to a sensor.
|
Constructor and Description |
---|
NameAndStream(String text,
String locationDescription)
Parse a TrafCOD identifier and extract all required information.
|
TrafCOD(String controllerName,
URL trafCodURL,
Set<org.opentrafficsim.road.network.lane.object.trafficlight.TrafficLight> trafficLights,
Set<org.opentrafficsim.road.network.lane.object.sensor.TrafficLightSensor> sensors,
nl.tudelft.simulation.dsol.simulators.DEVSSimulator<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,org.opentrafficsim.core.dsol.OTSSimTimeDouble> simulator,
Container display)
Construct a new TrafCOD traffic light controller.
|
Copyright © 2014–2017 Delft University of Technology. All rights reserved.