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