Interface TrafficLight

    • Field Detail

      • TRAFFICLIGHT_CHANGE_EVENT

        static final TimedEventType TRAFFICLIGHT_CHANGE_EVENT
        The timed event type for pub/sub indicating the change of color of a traffic light.
        Payload: Object[] {String trafficLightId, TrafficLight trafficLight, TrafficLightColor newColor}
    • Method Detail

      • getTrafficLightColor

        TrafficLightColor getTrafficLightColor()
        Returns:
        the trafficLightColor
      • setTrafficLightColor

        void setTrafficLightColor​(TrafficLightColor trafficLightColor)
        Set the new traffic light color.
        Parameters:
        trafficLightColor - TrafficLightColor; set the trafficLightColor