Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbstractTrafficController - Class in org.opentrafficsim.trafficcontrol
-
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
- AbstractTrafficController(String, OtsSimulatorInterface) - Constructor for class org.opentrafficsim.trafficcontrol.AbstractTrafficController
-
Constructor for traffic controller.
- ActuatedTrafficController - Interface in org.opentrafficsim.trafficcontrol
-
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
- addOutput(TrafficLight) - Method in class org.opentrafficsim.trafficcontrol.trafcod.Variable
-
Add a traffic light to this variable.
- addTrafCODObject(TrafCODObject) - Method in class org.opentrafficsim.trafficcontrol.trafcod.TrafCodDisplay
-
Add one TrafCODObject to this TrafCODDisplay.
- ASSIGNMENT - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.TrafCod.Token
-
Assignment rule.
B
- BEING_CLONED - Static variable in interface org.opentrafficsim.trafficcontrol.TrafficController
-
Traffic controller is being cloned.
- BICYCLE - Static variable in class org.opentrafficsim.trafficcontrol.trafcod.Diagram
-
Bicycle lane.
- BICYCLE_LANE - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.Diagram.LaneType
-
BICYCLE.
- BOUNDARY - Static variable in class org.opentrafficsim.trafficcontrol.trafcod.Diagram
-
Boundary of schematic intersection.
C
- CAR_CENTER - Static variable in class org.opentrafficsim.trafficcontrol.trafcod.Diagram
-
No turn (center) lane(s).
- CAR_LANE - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.Diagram.LaneType
-
Car.
- CAR_LEFT - Static variable in class org.opentrafficsim.trafficcontrol.trafcod.Diagram
-
Left turn lane(s).
- CAR_RIGHT - Static variable in class org.opentrafficsim.trafficcontrol.trafcod.Diagram
-
Right turn lane(s).
- CAR_ROUNDABOUT_LEFT - Static variable in class org.opentrafficsim.trafficcontrol.trafcod.Diagram
-
Left turn area on roundabout.
- CausePrinter - Class in org.opentrafficsim.trafficcontrol.trafcod
-
Class that can print a text version describing why a variable changed.
- CausePrinter(Object) - Constructor for class org.opentrafficsim.trafficcontrol.trafcod.CausePrinter
-
Construct a new CausePrinter object.
- Ccol - Class in org.opentrafficsim.trafficcontrol.ccol
-
Communication link with a CCOL traffic control program.
- Ccol(String, String, Set<TrafficLight>, Set<TrafficLightDetector>, OtsSimulator) - Constructor for class org.opentrafficsim.trafficcontrol.ccol.Ccol
-
Construct a new CCOL communication link.
- CHANGED - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.Flags
-
Variable has just changed value.
- checkConsistency() - Method in class org.opentrafficsim.trafficcontrol.trafcod.TrafCod
-
Check the consistency of the traffic control program and perform initializations that require a completely built network.
- clearChangedFlag() - Method in class org.opentrafficsim.trafficcontrol.trafcod.Variable
-
Clear the CHANGED flag of this Variable.
- clearFlag(Flags) - Method in class org.opentrafficsim.trafficcontrol.trafcod.Variable
-
Clear one flag.
- cloneState(Variable, Network) - Method in class org.opentrafficsim.trafficcontrol.trafcod.Variable
-
Copy the state of this variable from another variable.
- CLOSE_PAREN - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.TrafCod.Token
-
Closing parenthesis.
- COMMENT_PREFIX - Static variable in class org.opentrafficsim.trafficcontrol.trafcod.TrafCod
-
Comment starter in TrafCOD.
- compareTo(FixedTimeController.Flank) - Method in class org.opentrafficsim.trafficcontrol.FixedTimeController.Flank
- CONFLICT_GROUP - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.Flags
-
Variable identifies the currently active conflict group.
- conflictGroupRank() - Method in class org.opentrafficsim.trafficcontrol.trafcod.Variable
-
Retrieve the rank of the conflict group that this Variable represents.
- CONSTANT - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.TrafCod.Token
-
Integer follows.
D
- decrementTimer(int) - Method in class org.opentrafficsim.trafficcontrol.trafcod.Variable
-
Decrement the value of a timer.
- DetectorImage - Class in org.opentrafficsim.trafficcontrol.trafcod
-
Draws a detector.
- DetectorImage(TrafCodDisplay, Point2D, String, String) - Constructor for class org.opentrafficsim.trafficcontrol.trafcod.DetectorImage
-
Construct a new DetectorImage.
- Diagram - Class in org.opentrafficsim.trafficcontrol.trafcod
-
Functions that can draw a schematic diagram of an intersection given the list of traffic streams.
- Diagram(Set<Short>) - Constructor for class org.opentrafficsim.trafficcontrol.trafcod.Diagram
-
Construct a new diagram.
- Diagram.Command - Enum Class in org.opentrafficsim.trafficcontrol.trafcod
-
Commands used in RouteStep.
- Diagram.LaneType - Enum Class in org.opentrafficsim.trafficcontrol.trafcod
-
Types of lanes.
- Diagram.RouteStep - Class in org.opentrafficsim.trafficcontrol.trafcod
-
Step in a schematic route through the intersection.
- Diagram.XYPair - Class in org.opentrafficsim.trafficcontrol.trafcod
-
Pack two integer coordinates in one object.
- DIVIDER_1 - Static variable in class org.opentrafficsim.trafficcontrol.trafcod.Diagram
-
Central divider.
- DIVIDER_2 - Static variable in class org.opentrafficsim.trafficcontrol.trafcod.Diagram
-
Divider between center public transit and left turn lane.
- DIVIDER_3 - Static variable in class org.opentrafficsim.trafficcontrol.trafcod.Diagram
-
Divider between right turn lane and bicycle lane.
- DIVIDER_4 - Static variable in class org.opentrafficsim.trafficcontrol.trafcod.Diagram
-
Divider.
- DIVIDER_5 - Static variable in class org.opentrafficsim.trafficcontrol.trafcod.Diagram
-
Divider.
- DIVIDER_6 - Static variable in class org.opentrafficsim.trafficcontrol.trafcod.Diagram
-
Divider.
- DIVIDER_7 - Static variable in class org.opentrafficsim.trafficcontrol.trafcod.Diagram
-
Divider.
- draw(Graphics2D) - Method in class org.opentrafficsim.trafficcontrol.trafcod.DetectorImage
-
Draw yourself at the indicated location.
- draw(Graphics2D) - Method in interface org.opentrafficsim.trafficcontrol.trafcod.TrafCODObject
-
Draw yourself at the indicated location.
- draw(Graphics2D) - Method in class org.opentrafficsim.trafficcontrol.trafcod.TrafficLightImage
-
Draw yourself at the indicated location.
E
- E - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.PrintFlags
-
Print value as "1" if just reset, else print "0".
- ELSE - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.Diagram.Command
-
Else.
- ELSE_IF - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.Diagram.Command
-
Else if.
- END - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.Flags
-
Variable becomes inactive.
- END - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.TrafCod.Token
-
True if following variable has just ended.
- END_IF - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.Diagram.Command
-
End if.
- END_RULE - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.TrafCod.Token
-
End rule.
- EQ - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.TrafCod.Token
-
Equals to (=).
- equals(Object) - Method in class org.opentrafficsim.trafficcontrol.FixedTimeController.SignalGroup
- EQUALS_RULE - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.TrafCod.Token
-
Equals rule.
- EVALUATION_INTERVAL - Static variable in class org.opentrafficsim.trafficcontrol.ccol.Ccol
-
The evaluation interval of a CCOL controller.
- EVALUATION_INTERVAL - Static variable in class org.opentrafficsim.trafficcontrol.trafcod.TrafCod
-
The evaluation interval of TrafCOD.
F
- FIND_ASSIGN - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.TrafCod.ParserState
-
Looking for an assignment operator.
- FIND_EXPR - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.TrafCod.ParserState
-
Looking for an expression.
- FIND_LHS - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.TrafCod.ParserState
-
Looking for the left hand side of an assignment.
- FIND_RHS - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.TrafCod.ParserState
-
Looking for the right hand side of an assignment.
- fireTrafCODEvent(EventType, Object[]) - Method in class org.opentrafficsim.trafficcontrol.trafcod.TrafCod
-
Fire an event on behalf of this TrafCOD engine (used for tracing variable changes).
- FixedTimeController - Class in org.opentrafficsim.trafficcontrol
-
Fixed time traffic light control.
- FixedTimeController(String, OtsSimulatorInterface, Network, Duration, Duration, Set<FixedTimeController.SignalGroup>) - Constructor for class org.opentrafficsim.trafficcontrol.FixedTimeController
-
Constructor for fixed time traffic controller.
- FixedTimeController.Flank - Class in org.opentrafficsim.trafficcontrol
-
Storage of an offset within a cycle and the new traffic light color.
- FixedTimeController.SignalGroup - Class in org.opentrafficsim.trafficcontrol
-
Fixed time signal group.
- Flags - Enum Class in org.opentrafficsim.trafficcontrol.trafcod
-
Flags of a TrafCOD variable.
- FLAGS - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.PrintFlags
-
Print the flags of the Variable.
- Flank(double, TrafficLightColor) - Constructor for class org.opentrafficsim.trafficcontrol.FixedTimeController.Flank
-
Construct a new Flank.
G
- getClientSocket() - Method in class org.opentrafficsim.trafficcontrol.ccol.Ccol
-
Retrieve the client socket for shutdown.
- getColor() - Method in class org.opentrafficsim.trafficcontrol.trafcod.Variable
-
Retrieve the color for an output Variable.
- getCommand() - Method in class org.opentrafficsim.trafficcontrol.trafcod.Diagram.RouteStep
-
Retrieve the command.
- getCurrentColor() - Method in class org.opentrafficsim.trafficcontrol.FixedTimeController.SignalGroup
-
Retrieve the current color of this SignalGroup.
- getCycleTime() - Method in class org.opentrafficsim.trafficcontrol.FixedTimeController
- getDetectorImage(String) - Method in class org.opentrafficsim.trafficcontrol.trafcod.TrafCodDisplay
-
Look up a DetectorImage.
- getDisplayContainer() - Method in interface org.opentrafficsim.trafficcontrol.ActuatedTrafficController
-
Retrieve the Swing (for now) container in which the controller displays its current state.
- getDisplayContainer() - Method in class org.opentrafficsim.trafficcontrol.ccol.Ccol
-
Retrieve the Swing (for now) container in which the controller displays its current state.
- getDisplayContainer() - Method in class org.opentrafficsim.trafficcontrol.trafcod.TrafCod
-
Retrieve the Swing (for now) container in which the controller displays its current state.
- getEndSource() - Method in class org.opentrafficsim.trafficcontrol.trafcod.Variable
-
Describe the rule that ends this variable.
- getFlags() - Method in class org.opentrafficsim.trafficcontrol.trafcod.Variable
-
Return a safe copy of the flags.
- getFullId() - Method in class org.opentrafficsim.trafficcontrol.ccol.Ccol
- getFullId() - Method in class org.opentrafficsim.trafficcontrol.FixedTimeController
- getFullId() - Method in class org.opentrafficsim.trafficcontrol.trafcod.TrafCod
- getGreen() - Method in class org.opentrafficsim.trafficcontrol.FixedTimeController.SignalGroup
- getId() - Method in class org.opentrafficsim.trafficcontrol.AbstractTrafficController
- getId() - Method in class org.opentrafficsim.trafficcontrol.ccol.Ccol
-
Retrieve the Id of the traffic light controller.
- getId() - Method in class org.opentrafficsim.trafficcontrol.FixedTimeController.SignalGroup
-
Retrieve the id of this signal group.
- getId() - Method in class org.opentrafficsim.trafficcontrol.trafcod.DetectorImage
-
Retrieve the id of this DetectorImage.
- getId() - Method in interface org.opentrafficsim.trafficcontrol.TrafficController
-
Retrieve the Id of the traffic light controller.
- getName() - Method in class org.opentrafficsim.trafficcontrol.trafcod.NameAndStream
-
Retrieve the name.
- getName() - Method in class org.opentrafficsim.trafficcontrol.trafcod.Variable
-
Retrieve the name of this variable.
- getNumberOfChars() - Method in class org.opentrafficsim.trafficcontrol.trafcod.NameAndStream
-
Retrieve the number of characters consumed from the input.
- getOffset() - Method in class org.opentrafficsim.trafficcontrol.FixedTimeController.Flank
-
Retrieve the offset.
- getOffset() - Method in class org.opentrafficsim.trafficcontrol.FixedTimeController
- getOffset() - Method in class org.opentrafficsim.trafficcontrol.FixedTimeController.SignalGroup
- getPreGreen() - Method in class org.opentrafficsim.trafficcontrol.FixedTimeController.SignalGroup
- getRed() - Method in class org.opentrafficsim.trafficcontrol.FixedTimeController.SignalGroup
- getRefCount() - Method in class org.opentrafficsim.trafficcontrol.trafcod.Variable
-
Retrieve the number of rules that refer to this variable.
- getSignalGroups() - Method in class org.opentrafficsim.trafficcontrol.FixedTimeController
- getSimulator() - Method in class org.opentrafficsim.trafficcontrol.trafcod.TrafCod
-
Retrieve the simulator.
- getStartSource() - Method in class org.opentrafficsim.trafficcontrol.trafcod.Variable
-
Describe the rule that starts this variable.
- getStream() - Method in class org.opentrafficsim.trafficcontrol.trafcod.NameAndStream
-
Retrieve the stream number.
- getStream() - Method in class org.opentrafficsim.trafficcontrol.trafcod.Variable
-
Retrieve the stream to which this variable belongs.
- getStreamCondition() - Method in class org.opentrafficsim.trafficcontrol.trafcod.Diagram.RouteStep
-
Retrieve the stream condition.
- getStructureNumber() - Method in class org.opentrafficsim.trafficcontrol.trafcod.TrafCod
-
Retrieve the structure number.
- getTimerMax() - Method in class org.opentrafficsim.trafficcontrol.trafcod.Variable
-
Retrieve the start value of this timer in units of 0.1 seconds (1 second is represented by the value 10).
- getTrafficLightColor() - Method in class org.opentrafficsim.trafficcontrol.FixedTimeController.Flank
-
Retrieve the color after this transition.
- getTrafficLightIds() - Method in class org.opentrafficsim.trafficcontrol.FixedTimeController.SignalGroup
- getTrafficLights() - Method in class org.opentrafficsim.trafficcontrol.FixedTimeController.SignalGroup
- getTrafficLights() - Method in class org.opentrafficsim.trafficcontrol.trafcod.Variable
-
Retrieve the traffic lights controlled by this variable.
- getValue() - Method in class org.opentrafficsim.trafficcontrol.trafcod.Variable
-
Retrieve the current value of this Variable.
- getX() - Method in class org.opentrafficsim.trafficcontrol.trafcod.Diagram.RouteStep
-
Retrieve the X object.
- getX() - Method in class org.opentrafficsim.trafficcontrol.trafcod.Diagram.XYPair
-
Retrieve the X value.
- getY() - Method in class org.opentrafficsim.trafficcontrol.trafcod.Diagram.RouteStep
-
Retrieve the Y object.
- getY() - Method in class org.opentrafficsim.trafficcontrol.trafcod.Diagram.XYPair
-
Retrieve the Y value.
- getYellow() - Method in class org.opentrafficsim.trafficcontrol.FixedTimeController.SignalGroup
- GT - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.TrafCod.Token
-
Greater than (>).
- GTEQ - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.TrafCod.Token
-
Greater than or equal to (>=).
H
- HAS_END_RULE - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.Flags
-
Variable has an end rule.
- HAS_START_RULE - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.Flags
-
Variable has a start rule.
- hashCode() - Method in class org.opentrafficsim.trafficcontrol.FixedTimeController.SignalGroup
I
- ICON - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.Diagram.Command
-
Icon (bus, bicycle symbol).
- ID - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.PrintFlags
-
The name and stream of the Variable.
- IF - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.Diagram.Command
-
If.
- incrementReferenceCount() - Method in class org.opentrafficsim.trafficcontrol.trafcod.Variable
-
Increment the reference counter of this variable.
- INIT_TIMER - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.TrafCod.Token
-
Timer initialize rule.
- INITED - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.Flags
-
Variable must be initialized to 1 at start of control program.
- initialize() - Method in class org.opentrafficsim.trafficcontrol.trafcod.Variable
-
Initialize this variable if it has the INITED flag set.
- INITTIMER - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.PrintFlags
-
Print "I" before the name (indicates that a timer is initialized).
- IS_DETECTOR - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.Flags
-
Variable is a detector.
- IS_OUTPUT - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.Flags
-
Variable is an output.
- IS_TIMER - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.Flags
-
Variable is a timer.
- isConflictGroup() - Method in class org.opentrafficsim.trafficcontrol.trafcod.Variable
-
Report of this Variable identifies the current conflict group.
- isDetector() - Method in class org.opentrafficsim.trafficcontrol.trafcod.Variable
-
Report if this Variable is a detector.
- isGrass(int) - Static method in class org.opentrafficsim.trafficcontrol.trafcod.Diagram
-
Report if object is inaccessible to all traffic.
- isNegated() - Method in class org.opentrafficsim.trafficcontrol.trafcod.NameAndStream
-
Was a negation operator ('N') embedded in the name?
- isOutput() - Method in class org.opentrafficsim.trafficcontrol.trafcod.Variable
-
Report whether a change in this variable must be published.
- isTimer() - Method in class org.opentrafficsim.trafficcontrol.trafcod.Variable
-
Report whether this Variable is a timer.
L
- laneType(int) - Method in class org.opentrafficsim.trafficcontrol.trafcod.Diagram
-
Return the LaneType for a stream number.
- LE - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.TrafCod.Token
-
Less than (<).
- LEEQ - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.TrafCod.Token
-
Less than or equal to (<=).
- loadTextFromURL(URL) - Static method in class org.opentrafficsim.trafficcontrol.trafcod.TrafCod
-
Read a text from a URL and convert it to a list of strings.
M
- main(String[]) - Static method in class org.opentrafficsim.trafficcontrol.trafcod.Diagram
-
Test the Diagram code.
- makeCheckBox(int, boolean) - Static method in class org.opentrafficsim.trafficcontrol.trafcod.Diagram
-
Make a check box to switch a particular stream number on or off.
- MAY_UMINUS - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.TrafCod.ParserState
-
Looking for an optional unary minus.
- MINUS - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.TrafCod.Token
-
Subtraction operator.
- MODIFY_TIME - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.PrintFlags
-
Print the time of last modification of the Variable.
- mouseClicked(MouseEvent) - Method in class org.opentrafficsim.trafficcontrol.trafcod.TrafCodDisplay
- mouseDragged(MouseEvent) - Method in class org.opentrafficsim.trafficcontrol.trafcod.TrafCodDisplay
- mouseEntered(MouseEvent) - Method in class org.opentrafficsim.trafficcontrol.trafcod.TrafCodDisplay
- mouseExited(MouseEvent) - Method in class org.opentrafficsim.trafficcontrol.trafcod.TrafCodDisplay
- mouseMoved(MouseEvent) - Method in class org.opentrafficsim.trafficcontrol.trafcod.TrafCodDisplay
- mousePressed(MouseEvent) - Method in class org.opentrafficsim.trafficcontrol.trafcod.TrafCodDisplay
- mouseReleased(MouseEvent) - Method in class org.opentrafficsim.trafficcontrol.trafcod.TrafCodDisplay
N
- NameAndStream - Class in org.opentrafficsim.trafficcontrol.trafcod
-
Store a variable name, stream, isTimer, isNegated and number characters consumed information.
- NameAndStream(String, String) - Constructor for class org.opentrafficsim.trafficcontrol.trafcod.NameAndStream
-
Parse a TrafCOD identifier and extract all required information.
- NEG_EQUALS_RULE - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.TrafCod.Token
-
Not equals rule.
- NEG_VARIABLE - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.TrafCod.Token
-
Variable that follows must be logically negated.
- NEGATED - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.PrintFlags
-
Print the negated Variable.
- NO_OP - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.Diagram.Command
-
No operation.
- NO_STREAM - Static variable in interface org.opentrafficsim.trafficcontrol.TrafficController
-
Constant to select variables that have no associated traffic stream.
- NOTEQ - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.TrafCod.Token
-
Not equal to (!
- notify(Event) - Method in class org.opentrafficsim.trafficcontrol.ccol.Ccol
- notify(Event) - Method in class org.opentrafficsim.trafficcontrol.FixedTimeController
- notify(Event) - Method in class org.opentrafficsim.trafficcontrol.trafcod.DetectorImage
- notify(Event) - Method in class org.opentrafficsim.trafficcontrol.trafcod.TrafCod
- notify(Event) - Method in class org.opentrafficsim.trafficcontrol.trafcod.Variable
O
- OFF - Static variable in interface org.opentrafficsim.trafficcontrol.TrafficController
-
Traffic controller is off.
- OPEN_PAREN - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.TrafCod.Token
-
Opening parenthesis.
- org.opentrafficsim.trafficcontrol - package org.opentrafficsim.trafficcontrol
-
Traffic control for OTS.
- org.opentrafficsim.trafficcontrol.ccol - package org.opentrafficsim.trafficcontrol.ccol
-
Coupling of OTS with external CCOL traffic controller.
- org.opentrafficsim.trafficcontrol.trafcod - package org.opentrafficsim.trafficcontrol.trafcod
-
TrafCOD interpreter.
P
- paintComponent(Graphics) - Method in class org.opentrafficsim.trafficcontrol.trafcod.TrafCodDisplay
- PEDESTRIAN_LANE - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.Diagram.LaneType
-
Pedestrian.
- PLUS - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.TrafCod.Token
-
Addition operator.
- PrintFlags - Enum Class in org.opentrafficsim.trafficcontrol.trafcod
-
Flags for toString method of a Variable.
- printRule(Object[], boolean) - Static method in class org.opentrafficsim.trafficcontrol.trafcod.TrafCod
-
Print a tokenized rule.
- PT_BICYCLE_SIDEWALK - Static variable in class org.opentrafficsim.trafficcontrol.trafcod.Diagram
-
Public transit between bicycle lane and right sidewalk.
- PT_DIV_L - Static variable in class org.opentrafficsim.trafficcontrol.trafcod.Diagram
-
Public transit between divider and left turn lane.
- PT_RIGHT_BICYCLE - Static variable in class org.opentrafficsim.trafficcontrol.trafcod.Diagram
-
Public transit between right turn lane and bicycle lane.
- PT_SIDEWALK_SHOULDER - Static variable in class org.opentrafficsim.trafficcontrol.trafcod.Diagram
-
Public transit right of right sidewalk.
- PUBLIC_TRANSIT_LANE - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.Diagram.LaneType
-
Public transit.
R
- rebuildTestPanel() - Static method in class org.opentrafficsim.trafficcontrol.trafcod.Diagram
-
Render the intersection.
- REINIT_TIMER - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.TrafCod.Token
-
Timer re-initialize rule.
- REINITTIMER - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.PrintFlags
-
Print "RI" before the name (indicates that a timer is re-initialized).
- render() - Method in class org.opentrafficsim.trafficcontrol.trafcod.Diagram
-
Create a BufferedImage and render the schematic on it.
- rotatedX(Diagram.XYPair, int) - Method in class org.opentrafficsim.trafficcontrol.trafcod.Diagram
-
Return the rotated x value.
- rotatedY(Diagram.XYPair, int) - Method in class org.opentrafficsim.trafficcontrol.trafcod.Diagram
-
Return the rotated y value.
- RouteStep(int, int) - Constructor for class org.opentrafficsim.trafficcontrol.trafcod.Diagram.RouteStep
-
Construct a RouteStep that has a NO_OP command.
- RouteStep(int, int, Diagram.Command) - Constructor for class org.opentrafficsim.trafficcontrol.trafcod.Diagram.RouteStep
-
Construct a RouteStep with a command condition.
- RouteStep(Diagram.Command) - Constructor for class org.opentrafficsim.trafficcontrol.trafcod.Diagram.RouteStep
-
Construct a RouteStep for ELSE or END_IF command.
- RouteStep(Diagram.Command, int) - Constructor for class org.opentrafficsim.trafficcontrol.trafcod.Diagram.RouteStep
-
Construct a RouteStep with a command condition.
- RUNNING - Static variable in interface org.opentrafficsim.trafficcontrol.TrafficController
-
Traffic controller is running.
S
- S - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.PrintFlags
-
Print value as "1" if just set, else print "0".
- setClientSocket(Socket) - Method in class org.opentrafficsim.trafficcontrol.ccol.Ccol
-
Set the client socket (called from the accept thread).
- setEndSource(String) - Method in class org.opentrafficsim.trafficcontrol.trafcod.Variable
-
Set the description of the rule that ends this variable.
- setFlag(Flags) - Method in class org.opentrafficsim.trafficcontrol.trafcod.Variable
-
Set one flag.
- setOutput(int) - Method in class org.opentrafficsim.trafficcontrol.trafcod.Variable
-
Make this variable an output variable and set the color value.
- setStartSource(String) - Method in class org.opentrafficsim.trafficcontrol.trafcod.Variable
-
Set the description of the rule that starts this variable.
- setTimerMax(int) - Method in class org.opentrafficsim.trafficcontrol.trafcod.Variable
-
Set the maximum time of this timer.
- setTrafficLightColor(TrafficLightColor) - Method in class org.opentrafficsim.trafficcontrol.trafcod.TrafficLightImage
-
Sets the traffic light color.
- setValue(int, int, CausePrinter, TrafCod) - Method in class org.opentrafficsim.trafficcontrol.trafcod.Variable
- SHOULDER - Static variable in class org.opentrafficsim.trafficcontrol.trafcod.Diagram
-
Shoulder right of right sidewalk.
- SHUTTING_DOWN - Static variable in interface org.opentrafficsim.trafficcontrol.TrafficController
-
Traffic controller is shutting down.
- SIDEWALK - Static variable in class org.opentrafficsim.trafficcontrol.trafcod.Diagram
-
Sidewalk.
- SignalGroup(String, Set<String>, Duration, Duration, Duration) - Constructor for class org.opentrafficsim.trafficcontrol.FixedTimeController.SignalGroup
-
Constructor without pre-green duration.
- SignalGroup(String, Set<String>, Duration, Duration, Duration, Duration) - Constructor for class org.opentrafficsim.trafficcontrol.FixedTimeController.SignalGroup
-
Constructor with pre-green duration.
- START - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.Flags
-
Variable becomes active.
- START - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.TrafCod.Token
-
True if following variable has just started.
- START_RULE - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.TrafCod.Token
-
Start rule.
- STARTING_UP - Static variable in interface org.opentrafficsim.trafficcontrol.TrafficController
-
Traffic controller is starting up.
- startup(Duration, Duration, OtsSimulatorInterface, Network) - Method in class org.opentrafficsim.trafficcontrol.FixedTimeController.SignalGroup
-
Connect to the traffic lights in the network, initialize the traffic lights to their initial color and schedule the first transitions.
- STOP_LINE - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.Diagram.Command
-
Stop line.
- STOP_LINE_AND_ICON - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.Diagram.Command
-
Stop line AND icon.
- subscribeToDetector(TrafficLightDetector) - Method in class org.opentrafficsim.trafficcontrol.trafcod.Variable
-
Link a detector variable to a sensor.
T
- TIMEREXPIRED - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.Flags
-
Timer has just expired.
- TIMES - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.TrafCod.Token
-
Multiplication operator.
- toolTipHit(int, int) - Method in class org.opentrafficsim.trafficcontrol.trafcod.DetectorImage
-
Check if the given coordinates hit the TrafCODObject.
- toolTipHit(int, int) - Method in interface org.opentrafficsim.trafficcontrol.trafcod.TrafCODObject
-
Check if the given coordinates hit the TrafCODObject.
- toolTipHit(int, int) - Method in class org.opentrafficsim.trafficcontrol.trafcod.TrafficLightImage
-
Check if the given coordinates hit the TrafCODObject.
- toString() - Method in class org.opentrafficsim.trafficcontrol.FixedTimeController.Flank
- toString() - Method in class org.opentrafficsim.trafficcontrol.FixedTimeController.SignalGroup
- toString() - Method in class org.opentrafficsim.trafficcontrol.FixedTimeController
- toString() - Method in class org.opentrafficsim.trafficcontrol.trafcod.CausePrinter
- toString() - Method in class org.opentrafficsim.trafficcontrol.trafcod.Diagram.RouteStep
- toString() - Method in class org.opentrafficsim.trafficcontrol.trafcod.Diagram.XYPair
- toString() - Method in class org.opentrafficsim.trafficcontrol.trafcod.NameAndStream
- toString() - Method in class org.opentrafficsim.trafficcontrol.trafcod.TrafCod
- toString() - Method in class org.opentrafficsim.trafficcontrol.trafcod.Variable
- toString(EnumSet<PrintFlags>) - Method in class org.opentrafficsim.trafficcontrol.trafcod.Variable
-
Convert selected fields to a String.
- TRACED - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.Flags
-
Variable is traced; all changes must be printed.
- traceVariable(String, int, boolean) - Method in class org.opentrafficsim.trafficcontrol.trafcod.TrafCod
-
Switch tracing of one variable on or off.
- traceVariablesOfStream(int, boolean) - Method in class org.opentrafficsim.trafficcontrol.trafcod.TrafCod
-
Switch tracing of all variables of a particular traffic stream, or all variables that do not have an associated traffic stream on or off.
- TrafCod - Class in org.opentrafficsim.trafficcontrol.trafcod
-
TrafCOD evaluator.
- TrafCod(String, URL, OtsSimulatorInterface, Container, BufferedImage, List<String>) - Constructor for class org.opentrafficsim.trafficcontrol.trafcod.TrafCod
-
Construct a new TrafCOD traffic light controller.
- TrafCod(String, List<String>, OtsSimulatorInterface, BufferedImage, List<String>) - Constructor for class org.opentrafficsim.trafficcontrol.trafcod.TrafCod
-
Construct a new TrafCOD traffic light controller.
- TrafCod_VERSION - Static variable in class org.opentrafficsim.trafficcontrol.trafcod.TrafCod
-
Version of the supported TrafCOD files.
- TrafCod.ParserState - Enum Class in org.opentrafficsim.trafficcontrol.trafcod
-
States of the rule parser.
- TrafCod.Token - Enum Class in org.opentrafficsim.trafficcontrol.trafcod
-
Types of TrafCOD tokens.
- TrafCodDisplay - Class in org.opentrafficsim.trafficcontrol.trafcod
-
Display the current state of a TrafCOD machine.
- TrafCodDisplay(BufferedImage) - Constructor for class org.opentrafficsim.trafficcontrol.trafcod.TrafCodDisplay
-
Construct a new TrafCODDisplay.
- TrafCODObject - Interface in org.opentrafficsim.trafficcontrol.trafcod
-
Interface for objects that can draw themselves onto a Graphics2D and may want to show their own tool tip text when the mouse hits them.
- TRAFFIC_LIGHT_CHANGED - Static variable in interface org.opentrafficsim.trafficcontrol.TrafficController
-
The timedevent that is fired by a traffic control program when a traffic light must change state.
- TRAFFICCONTROL_CONFLICT_GROUP_CHANGED - Static variable in interface org.opentrafficsim.trafficcontrol.TrafficController
-
The timed event for pub/sub emitted by a traffic control machine when it changes to another conflict group.
- TRAFFICCONTROL_CONTROLLER_CREATED - Static variable in interface org.opentrafficsim.trafficcontrol.TrafficController
-
The timed event type for pub/sub that a newly created traffic controller emits.
- TRAFFICCONTROL_CONTROLLER_EVALUATING - Static variable in interface org.opentrafficsim.trafficcontrol.TrafficController
-
The timed event type for pub/sub that a traffic controller emits when it begins the computations to determine its response to the current input (detector states).
Payload: Object[] { String trafficControllerId } - TRAFFICCONTROL_CONTROLLER_WARNING - Static variable in interface org.opentrafficsim.trafficcontrol.TrafficController
-
The timed event type for pub/sub that a traffic controller uses to convey warnings.
Payload: Object[] { String trafficControllerId, String message } - TRAFFICCONTROL_SET_TRACING - Static variable in interface org.opentrafficsim.trafficcontrol.TrafficController
-
The timed event type that instruct a traffic controller to change the tracing level of a variable.
- TRAFFICCONTROL_STATE_CHANGED - Static variable in interface org.opentrafficsim.trafficcontrol.TrafficController
-
The timed event for pub/sub emitted by a traffic control machine when it changes state (STARTING_UP, RUNNING, SHUTTING_DOWN, OFF, etc.
- TRAFFICCONTROL_TRACED_VARIABLE_UPDATED - Static variable in interface org.opentrafficsim.trafficcontrol.TrafficController
-
The timed event type for pub/sub indicating the update of a traced control program variable.
- TRAFFICCONTROL_VARIABLE_CREATED - Static variable in interface org.opentrafficsim.trafficcontrol.TrafficController
-
The timed event type for pub/sub indicating the creation of a traffic control program variable.
- TrafficControlException - Exception in org.opentrafficsim.trafficcontrol
-
Exceptions thrown by traffic control programs.
- TrafficControlException() - Constructor for exception org.opentrafficsim.trafficcontrol.TrafficControlException
- TrafficControlException(String) - Constructor for exception org.opentrafficsim.trafficcontrol.TrafficControlException
- TrafficControlException(String, Throwable) - Constructor for exception org.opentrafficsim.trafficcontrol.TrafficControlException
- TrafficControlException(String, Throwable, boolean, boolean) - Constructor for exception org.opentrafficsim.trafficcontrol.TrafficControlException
- TrafficControlException(Throwable) - Constructor for exception org.opentrafficsim.trafficcontrol.TrafficControlException
- TrafficController - Interface in org.opentrafficsim.trafficcontrol
-
Interface for traffic light controllers.
- TrafficLightImage - Class in org.opentrafficsim.trafficcontrol.trafcod
-
Draws a traffic light.
- TrafficLightImage(TrafCodDisplay, Point2D, String) - Constructor for class org.opentrafficsim.trafficcontrol.trafcod.TrafficLightImage
-
Create a traffic light image.
U
- UNARY_MINUS - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.TrafCod.Token
-
Unary minus operator.
- updateDetector(String, boolean) - Method in interface org.opentrafficsim.trafficcontrol.ActuatedTrafficController
-
Tell the traffic controller that the state of a detector has changed.
- updateDetector(String, boolean) - Method in class org.opentrafficsim.trafficcontrol.ccol.Ccol
-
Tell the traffic controller that the state of a detector has changed.
- updateDetector(String, boolean) - Method in class org.opentrafficsim.trafficcontrol.trafcod.TrafCod
-
Tell the traffic controller that the state of a detector has changed.
V
- VALUE - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.PrintFlags
-
The value of the Variable.
- valueOf(String) - Static method in enum class org.opentrafficsim.trafficcontrol.trafcod.Diagram.Command
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.opentrafficsim.trafficcontrol.trafcod.Diagram.LaneType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.opentrafficsim.trafficcontrol.trafcod.Flags
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.opentrafficsim.trafficcontrol.trafcod.PrintFlags
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.opentrafficsim.trafficcontrol.trafcod.TrafCod.ParserState
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.opentrafficsim.trafficcontrol.trafcod.TrafCod.Token
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.opentrafficsim.trafficcontrol.trafcod.Diagram.Command
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.opentrafficsim.trafficcontrol.trafcod.Diagram.LaneType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.opentrafficsim.trafficcontrol.trafcod.Flags
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.opentrafficsim.trafficcontrol.trafcod.PrintFlags
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.opentrafficsim.trafficcontrol.trafcod.TrafCod.ParserState
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.opentrafficsim.trafficcontrol.trafcod.TrafCod.Token
-
Returns an array containing the constants of this enum class, in the order they are declared.
- Variable - Class in org.opentrafficsim.trafficcontrol.trafcod
-
A TrafCOD variable, timer, or detector.
- Variable(String, short, TrafCod) - Constructor for class org.opentrafficsim.trafficcontrol.trafcod.Variable
-
Construct a new Variable.
- VARIABLE - Enum constant in enum class org.opentrafficsim.trafficcontrol.trafcod.TrafCod.Token
-
Variable follows.
X
- XYPair(int, int) - Constructor for class org.opentrafficsim.trafficcontrol.trafcod.Diagram.XYPair
-
Construct a new XY pair.
- XYPair(Diagram.RouteStep) - Constructor for class org.opentrafficsim.trafficcontrol.trafcod.Diagram.XYPair
-
Construct a new XY pair from a route step.
- XYPair(Diagram.XYPair, int) - Constructor for class org.opentrafficsim.trafficcontrol.trafcod.Diagram.XYPair
-
Construct a rotated version of an XYPair.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form