public interface TrafficController extends EventProducerInterface, EventListenerInterface, InvisibleObjectInterface
 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.
 
| Modifier and Type | Field and Description | 
|---|---|
static String | 
BEING_CLONED
Traffic controller is being cloned. 
 | 
static int | 
NO_STREAM
Constant to select variables that have no associated traffic stream. 
 | 
static String | 
OFF
Traffic controller is off. 
 | 
static String | 
RUNNING
Traffic controller is running. 
 | 
static String | 
SHUTTING_DOWN
Traffic controller is shutting down. 
 | 
static String | 
STARTING_UP
Traffic controller is starting up. 
 | 
static EventType | 
TRAFFIC_LIGHT_CHANGED
The timedevent that is fired by a traffic control program when a traffic light must change state. 
 | 
static EventType | 
TRAFFICCONTROL_CONFLICT_GROUP_CHANGED
The timed event for pub/sub emitted by a traffic control machine when it changes to another conflict group. 
 | 
static EventType | 
TRAFFICCONTROL_CONTROLLER_CREATED
The timed event type for pub/sub that a newly created traffic controller emits. 
 | 
static EventType | 
TRAFFICCONTROL_CONTROLLER_EVALUATING
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 }  | 
static EventType | 
TRAFFICCONTROL_CONTROLLER_WARNING
The timed event type for pub/sub that a traffic controller uses to convey warnings. 
Payload: Object[] { String trafficControllerId, String message }  | 
static EventType | 
TRAFFICCONTROL_SET_TRACING
The timed event type that instruct a traffic controller to change the tracing level of a variable. 
 | 
static EventType | 
TRAFFICCONTROL_STATE_CHANGED
The timed event for pub/sub emitted by a traffic control machine when it changes state (STARTING_UP, RUNNING,
 SHUTTING_DOWN, OFF, etc. 
 | 
static EventType | 
TRAFFICCONTROL_TRACED_VARIABLE_UPDATED
The timed event type for pub/sub indicating the update of a traced control program variable. 
 | 
static EventType | 
TRAFFICCONTROL_VARIABLE_CREATED
The timed event type for pub/sub indicating the creation of a traffic control program variable. 
 | 
FIRST_POSITION, LAST_POSITION| Modifier and Type | Method and Description | 
|---|---|
String | 
getId()
Retrieve the Id of the traffic light controller. 
 | 
void | 
updateDetector(String detectorId,
              boolean detectingGTU)
Tell the traffic controller that the state of a detector has changed. 
 | 
addListener, addListener, addListener, addListener, removeListenernotifyclone, getFullIdstatic final String STARTING_UP
static final String BEING_CLONED
static final String RUNNING
static final String SHUTTING_DOWN
static final String OFF
static final int NO_STREAM
static final EventType TRAFFICCONTROL_CONTROLLER_CREATED
static final EventType TRAFFICCONTROL_CONTROLLER_EVALUATING
static final EventType TRAFFICCONTROL_CONTROLLER_WARNING
static final EventType TRAFFICCONTROL_STATE_CHANGED
static final EventType TRAFFIC_LIGHT_CHANGED
static final EventType TRAFFICCONTROL_VARIABLE_CREATED
TRAFFICCONTROL_SET_TRACE messages to set the tracing level of a
 variable.static final EventType TRAFFICCONTROL_SET_TRACING
NO_STREAM selects variable(s) that are not associated with a particular traffic
 stream. TRAFFICCONTROL_TRACED_VARIABLE_UPDATED events sent to all listeners; i.e. it is not possible to
 affect tracing on a per listener basis.static final EventType TRAFFICCONTROL_TRACED_VARIABLE_UPDATED
NO_STREAM static final EventType TRAFFICCONTROL_CONFLICT_GROUP_CHANGED
00 can be used as a place holder for a stream in a conflict groups that have fewer than
 the maximum number of traffic streams that occur in any conflict group.oldConflictGroupStreams.String getId()
getId in interface Identifiablevoid updateDetector(String detectorId, boolean detectingGTU)
detectorId - String; id of the detectordetectingGTU - boolean;Copyright © 2014–2018 Delft University of Technology. All rights reserved.