'Set the runtime state.
Should only be called by `SignalManager` implementations.'

def _set_runtime_state(self, state):

    if (self.__runtime_state != state):
        self.__runtime_state = state
        self.runtimeStateChanged.emit(self.__runtime_state)
