parameters: (self, tlsID, tlsLinkIndex, state)
docstring: setLinkState(string, string, int, string) -> None
          Sets the state for the given tls and link index. The state must be one
          of rRgGyYoOu for red, red-yellow, green, yellow, off, where lower case letters mean that the stream has
          to decelerate.
          The link index is shown in the GUI when setting the appropriate junction
          visualization option.
docstring_summary: setLinkState(string, string, int, string) -> None
          Sets the state for the given tls and link index. The state must be one
          of rRgGyYoOu for red, red-yellow, green, yellow, off, where lower case letters mean that the stream has
          to decelerate.
          The link index is shown in the GUI when setting the appropriate junction
          visualization option.
docstring_tokens: setLinkState ( string string int string ) - > None Sets the state for the given tls and link index . The state must be one of rRgGyYoOu for red red - yellow green yellow off where lower case letters mean that the stream has to decelerate . The link index is shown in the GUI when setting the appropriate junction visualization option .
function: def setLinkState(self, tlsID, tlsLinkIndex, state):
          """setLinkState(string, string, int, string) -> None
          Sets the state for the given tls and link index. The state must be one
          of rRgGyYoOu for red, red-yellow, green, yellow, off, where lower case letters mean that the stream has
          to decelerate.
          The link index is shown in the GUI when setting the appropriate junction
          visualization option.
          """
          fullState = list(self.getRedYellowGreenState(tlsID))
          if tlsLinkIndex >= len(fullState):
              raise TraCIException("Invalid tlsLinkIndex %s for tls '%s' with maximum index %s." % (
                  tlsLinkIndex, tlsID, len(fullState) - 1))
          else:
              fullState[tlsLinkIndex] = state
              self.setRedYellowGreenState(tlsID, ''.join(fullState))
function_tokens: def setLinkState ( self , tlsID , tlsLinkIndex , state ) : fullState = list ( self . getRedYellowGreenState ( tlsID ) ) if tlsLinkIndex >= len ( fullState ) : raise TraCIException ( "Invalid tlsLinkIndex %s for tls '%s' with maximum index %s." % ( tlsLinkIndex , tlsID , len ( fullState ) - 1 ) ) else : fullState [ tlsLinkIndex ] = state self . setRedYellowGreenState ( tlsID , '' . join ( fullState ) )