java.lang.Object
org.djutils.event.LocalEventProducer
org.opentrafficsim.trafficcontrol.ccol.Ccol
All Implemented Interfaces:
EventListener, Identifiable, EventListener, EventProducer, NonLocatedObject, ActuatedTrafficController, TrafficController

public class Ccol extends LocalEventProducer implements ActuatedTrafficController
Communication link with a CCOL traffic control program.

Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Constructor Details

    • Ccol

      public Ccol(String id, String controlProgram, Set<TrafficLight> trafficLights, Set<TrafficLightDetector> sensors, OtsSimulator simulator) throws TrafficControlException, nl.tudelft.simulation.dsol.SimRuntimeException
      Construct a new CCOL communication link.
      Parameters:
      id - id of the traffic controller
      controlProgram - name of the CCOL program that this CCOL link must communicate with
      trafficLights - 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 - 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 - the simulation engine
      Throws:
      TrafficControlException - on failure to initialize the connection to the external CCOL program
      nl.tudelft.simulation.dsol.SimRuntimeException - on failure to schedule the first evaluation event
  • Method Details