Home | Trees | Index | Help |
---|
Package beepy :: Package core :: Module _statemachine :: Class StateMachine |
|
Method Summary | |
---|---|
__init__(self)
| |
addState(self,
state,
handler,
terminal)
| |
addTransition sets up the rule for what to do if an event occurs in a given state. | |
run(self)
| |
setStart(self,
state)
| |
transition is used to change the state of the FSM from the current state to the next state by telling it an event has occurred. |
Method Details |
---|
addTransition(self, state, event, nextState)addTransition sets up the rule for what to do if an event occurs in a given state. Simply: in state, if event occurs, transition to nextState |
transition(self, event)transition is used to change the state of the FSM from the current state to the next state by telling it an event has occurred. This is a sortof callback mechanism. |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.0 on Thu Sep 30 14:39:26 2004 | http://epydoc.sf.net |