parameters: (self)
docstring: Switch off all traffic lights.
docstring_summary: Switch off all traffic lights.
docstring_tokens: Switch off all traffic lights .
function: def switch_off(self):
          """
          Switch off all traffic lights.
          """
          for tlid, link_index in self.get_all_signals():
              traci.trafficlight.setLinkState(tlid, link_index, SumoSignalState.OFF)
          self._off = True
function_tokens: def switch_off ( self ) : for tlid , link_index in self . get_all_signals ( ) : traci . trafficlight . setLinkState ( tlid , link_index , SumoSignalState . OFF ) self . _off = True