Interface ActuatedTrafficController
-
- All Superinterfaces:
Drawable
,EventListener
,EventListenerInterface
,EventProducerInterface
,Identifiable
,InvisibleObjectInterface
,Serializable
,TrafficController
public interface ActuatedTrafficController extends TrafficController
Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 21 feb. 2019
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Field Summary
-
Fields inherited from interface org.djutils.event.EventProducerInterface
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Container
getDisplayContainer()
Retrieve 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.EventListenerInterface
notify
-
Methods inherited from interface org.djutils.event.EventProducerInterface
addListener, addListener, addListener, addListener, getEventTypesWithListeners, getSourceId, hasListeners, numberOfListeners, removeListener
-
Methods inherited from interface org.opentrafficsim.core.object.InvisibleObjectInterface
clone, getFullId
-
Methods inherited from interface org.opentrafficsim.trafficcontrol.TrafficController
getId
-
-
-
-
Method Detail
-
updateDetector
void updateDetector(String detectorId, boolean detectingGTU)
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!
-
-