Public Member Functions | |
def | __init__ |
def | setStartState |
def | addTransition |
def | makeTransition |
Makes a transition based on the given input. | |
Public Attributes | |
transitions | |
current_state | |
current_input | |
current_transition |
Transitions are given as 4-tuples, consisting of an origin state, a target state, a condition for the transition (given as a reference to a function which gets called with a given piece of input) and a pointer to a function to be called upon the execution of the given transition.
def doxypy::FSM::__init__ | ( | self, | ||
start_state = None , |
||||
transitions = [] | ||||
) |
def doxypy::FSM::addTransition | ( | self, | ||
from_state, | ||||
to_state, | ||||
condition, | ||||
callback | ||||
) |
def doxypy::FSM::makeTransition | ( | self, | ||
input | ||||
) |
def doxypy::FSM::setStartState | ( | self, | ||
state | ||||
) |