@@ -59,8 +59,21 @@ namespace dsm {
5959 : Intersection{node}, m_cycleTime{cycleTime}, m_counter{counter} {}
6060
6161 TrafficLight& operator ++();
62-
62+ // / @brief Get the maximum green time of every cycle
63+ // / @param priorityStreets bool, if true, only the priority streets are considered;
64+ // / if false, only the non-priority streets are considered
65+ // / @return Delay The maximum green time
66+ // / @details The maximum green time is the maximum green time of all the cycles for
67+ // / the priority streets if priorityStreets is true, or for the non-priority
68+ // / streets if priorityStreets is false.
6369 Delay maxGreenTime (bool priorityStreets) const ;
70+ // / @brief Get the minimum green time of every cycle
71+ // / @param priorityStreets bool, if true, only the priority streets are considered;
72+ // / if false, only the non-priority streets are considered
73+ // / @return Delay The minimum green time
74+ // / @details The minimum green time is the minimum green time of all the cycles for
75+ // / the priority streets if priorityStreets is true, or for the non-priority
76+ Delay minGreenTime (bool priorityStreets) const ;
6477 // / @brief Get the traffic light's total cycle time
6578 // / @return Delay The traffic light's cycle time
6679 inline Delay cycleTime () const { return m_cycleTime; }
0 commit comments