1 package org.opentrafficsim.trafficcontrol;
2
3 import java.awt.Container;
4
5 /**
6 * <p>
7 * Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
8 * BSD-style license. See <a href="http://opentrafficsim.org/node/13">OpenTrafficSim License</a>.
9 * <p>
10 * @version $Revision$, $LastChangedDate$, by $Author$, initial version 21 feb. 2019 <br>
11 * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a>
12 * @author <a href="http://www.tudelft.nl/pknoppers">Peter Knoppers</a>
13 * @author <a href="http://www.transport.citg.tudelft.nl">Wouter Schakel</a>
14 */
15 public interface ActuatedTrafficController extends TrafficController
16 {
17
18 /**
19 * Tell the traffic controller that the state of a detector has changed.
20 * @param detectorId String; id of the detector
21 * @param detectingGTU boolean;
22 */
23 void updateDetector(String detectorId, boolean detectingGTU);
24
25 /**
26 * Retrieve the Swing (for now) container in which the controller displays its current state.
27 * @return Container; the display of the current state; may return null!
28 */
29 Container getDisplayContainer();
30
31 }