View Javadoc
1   package org.opentrafficsim.trafficcontrol;
2   
3   import nl.tudelft.simulation.event.EventProducerInterface;
4   
5   /**
6    * Interface for traffic light controllers.
7    * <p>
8    * Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
9    * BSD-style license. See <a href="http://opentrafficsim.org/node/13">OpenTrafficSim License</a>.
10   * <p>
11   * @version $Revision$, $LastChangedDate$, by $Author$, initial version Oct 14, 2016 <br>
12   * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a>
13   * @author <a href="http://www.tudelft.nl/pknoppers">Peter Knoppers</a>
14   * @author <a href="http://www.transport.citg.tudelft.nl">Wouter Schakel</a>
15   */
16  public interface TrafficController extends EventProducerInterface
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      public void updateDetector(String detectorId, boolean detectingGTU);
24  
25  }