Class SumoTrafficLightLogic


  • public class SumoTrafficLightLogic
    extends AbstractSubscriptionResult
    This class represents a traffic light program based on SUMO definition as described on https://sumo.dlr.de/docs/Simulation/Traffic_Lights.html#defining_new_tls-programs.
    • Constructor Detail

      • SumoTrafficLightLogic

        public SumoTrafficLightLogic​(String logicId,
                                     List<SumoTrafficLightLogic.Phase> phases,
                                     int currentPhase)
        Creates a new SumoTrafficLightLogic object.
        Parameters:
        logicId - The id of the traffic light logic.
        phases - List of switch phases.
        currentPhase - The index of the phase.
    • Method Detail

      • getLogicId

        public String getLogicId()
        Getter for the Id of the traffic light logic.
        Returns:
        The logic Id.
      • getCurrentPhase

        public int getCurrentPhase()
        Getter for the Index of the phase.
        Returns:
        the index of the phase.