Class CCOL

java.lang.Object
nl.tudelft.simulation.event.EventProducer
org.opentrafficsim.trafficcontrol.ccol.CCOL
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, nl.tudelft.simulation.event.EventListenerInterface, nl.tudelft.simulation.event.EventProducerInterface, Identifiable, Drawable, InvisibleObjectInterface, ActuatedTrafficController, TrafficController

public class CCOL
extends nl.tudelft.simulation.event.EventProducer
implements ActuatedTrafficController
Communication link with a CCOL traffic control program.

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 Jan 23, 2017
Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
See Also:
Serialized Form
  • Constructor Details

    • CCOL

      public CCOL​(java.lang.String id, java.lang.String controlProgram, java.util.Set<TrafficLight> trafficLights, java.util.Set<TrafficLightSensor> sensors, DEVSSimulator<Time,​Duration,​SimTimeDoubleUnit> simulator) throws TrafficControlException, SimRuntimeException
      Construct a new CCOL communication link.
      Parameters:
      id - String; id of the traffic controller
      controlProgram - String; name of the CCOL program that this CCOL link must communicate with
      trafficLights - Set<TrafficLight>; the traffic lights. The ids of the traffic lights must end with two digits that match the stream numbers as used in the traffic control program
      sensors - Set<TrafficLightSensor>; the traffic sensors. The ids of the traffic sensors must end with three digits; the first two of those must match the stream and sensor numbers used in the traffic control program
      simulator - DEVSSimulator<Time, Duration, SimTimeDoubleUnit>; the simulation engine
      Throws:
      TrafficControlException - on failure to initialize the connection to the external CCOL program
      SimRuntimeException - on failure to schedule the first evaluation event
  • Method Details