def METHOD_NAME(self, state):
    """
    Updates overall state
    :param state:
    :return:
    """
    if self.state != state:
        self.state = state
    self.emit("stateChanged", (self.state,))