|
|
|
reset(self)
This sets the current_state to the initial_state and sets
input_symbol to None. |
source code
|
|
|
add_transition(self,
input_symbol,
state,
action,
next_state)
This adds a transition that associates
(input_symbol, current_state) --> (action, next_state)
The action may be set to None in which case the process() method
will ignore the action and only set the next_state. |
source code
|
|
|
add_transition_list(self,
list_input_symbols,
state,
action,
next_state)
This adds the same transition for lots of different input
symbols. |
source code
|
|
|
add_transition_any(self,
state,
action,
next_state)
This adds a transition that associates
(current_state) --> (action, next_state)
The process() method checks these associations if it cannot
first find a match of an (input_symbol, current_state). |
source code
|
|
|
|
|
|
|
process(self,
input_symbol)
This is the main method that you call to process input. |
source code
|
|
|
|