Class CCOL

    • Constructor Detail

      • 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