@classmethod
def addState(cls, state):
    """ Adds a state to the FSA
        This method should be preferred instead of the "setState" method
        """
    currentState = cls.getState()
    if state > cls.S_IDLE:
        currentState &= ~cls.S_IDLE
    cls.setState(currentState | state)
