Interface ActuatedTrafficController
- All Superinterfaces:
org.opentrafficsim.core.animation.Drawable
,EventListener
,org.djutils.event.EventListener
,org.djutils.event.EventProducer
,org.djutils.base.Identifiable
,org.opentrafficsim.core.object.NonLocatedObject
,Remote
,Serializable
,TrafficController
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Field Summary
Fields inherited from interface org.djutils.event.EventProducer
FIRST_POSITION, LAST_POSITION
Fields inherited from interface org.opentrafficsim.trafficcontrol.TrafficController
BEING_CLONED, NO_STREAM, OFF, RUNNING, SHUTTING_DOWN, STARTING_UP, TRAFFIC_LIGHT_CHANGED, TRAFFICCONTROL_CONFLICT_GROUP_CHANGED, TRAFFICCONTROL_CONTROLLER_CREATED, TRAFFICCONTROL_CONTROLLER_EVALUATING, TRAFFICCONTROL_CONTROLLER_WARNING, TRAFFICCONTROL_SET_TRACING, TRAFFICCONTROL_STATE_CHANGED, TRAFFICCONTROL_TRACED_VARIABLE_UPDATED, TRAFFICCONTROL_VARIABLE_CREATED
-
Method Summary
Modifier and TypeMethodDescriptionRetrieve the Swing (for now) container in which the controller displays its current state.void
updateDetector
(String detectorId, boolean detectingGTU) Tell the traffic controller that the state of a detector has changed.Methods inherited from interface org.djutils.event.EventListener
notify
Methods inherited from interface org.djutils.event.EventProducer
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, getEventListenerMap, getEventTypesWithListeners, getListenerReferences, hasListeners, numberOfListeners, removeAllListeners, removeAllListeners, removeListener
Methods inherited from interface org.opentrafficsim.core.object.NonLocatedObject
getFullId
Methods inherited from interface org.opentrafficsim.trafficcontrol.TrafficController
getId
-
Method Details
-
updateDetector
Tell the traffic controller that the state of a detector has changed.- Parameters:
detectorId
- String; id of the detectordetectingGTU
- boolean;
-
getDisplayContainer
Container getDisplayContainer()Retrieve the Swing (for now) container in which the controller displays its current state.- Returns:
- Container; the display of the current state; may return null!
-