Public Member Functions | |
def | __init__ (self, num_of_state) |
Constructor. More... | |
def | getState (self) |
Get current state. More... | |
def | getStates (self) |
Get state machine's status. More... | |
def | goTo (self, state) |
Change status. More... | |
def | isIn (self, state) |
Evaluate current status. More... | |
def | need_trans (self) |
def | setDoAction (self, state, call_back) |
Set Do action function. More... | |
def | setEntryAction (self, state, call_back) |
Set Entry action function. More... | |
def | setExitAction (self, state, call_back) |
Set Exit action function. More... | |
def | setListener (self, listener) |
Set Listener Object. More... | |
def | setNOP (self, call_back) |
Set NOP function. More... | |
def | setNullFunc (self, s, nullfunc) |
Worker function. More... | |
def | setPostDoAction (self, state, call_back) |
Set PostDo action function. More... | |
def | setPreDoAction (self, state, call_back) |
Set PreDo action function. More... | |
def | setStartState (self, states) |
Set Exit action function. More... | |
def | setTransitionAction (self, call_back) |
Set state transition action function. More... | |
def | sync (self, states) |
def | update_curr (self, curr) |
def | worker (self) |
Worker function. More... | |
Static Public Attributes | |
tuple | state_array |
Private Attributes | |
_do | |
_entry | |
_exit | |
_listener | |
_mutex | |
_num | |
_postdo | |
_predo | |
_states | |
_transit | |
Definition at line 134 of file StateMachine.py.
def OpenRTM_aist.StateMachine.StateMachine.__init__ | ( | self, | |
num_of_state | |||
) |
Constructor.
Definition at line 155 of file StateMachine.py.
def OpenRTM_aist.StateMachine.StateMachine.getState | ( | self | ) |
Get current state.
Definition at line 395 of file StateMachine.py.
def OpenRTM_aist.StateMachine.StateMachine.getStates | ( | self | ) |
Get state machine's status.
Definition at line 377 of file StateMachine.py.
def OpenRTM_aist.StateMachine.StateMachine.goTo | ( | self, | |
state | |||
) |
Change status.
Definition at line 438 of file StateMachine.py.
def OpenRTM_aist.StateMachine.StateMachine.isIn | ( | self, | |
state | |||
) |
Evaluate current status.
Definition at line 414 of file StateMachine.py.
def OpenRTM_aist.StateMachine.StateMachine.need_trans | ( | self | ) |
Definition at line 538 of file StateMachine.py.
def OpenRTM_aist.StateMachine.StateMachine.setDoAction | ( | self, | |
state, | |||
call_back | |||
) |
Set Do action function.
Definition at line 270 of file StateMachine.py.
def OpenRTM_aist.StateMachine.StateMachine.setEntryAction | ( | self, | |
state, | |||
call_back | |||
) |
Set Entry action function.
Definition at line 224 of file StateMachine.py.
def OpenRTM_aist.StateMachine.StateMachine.setExitAction | ( | self, | |
state, | |||
call_back | |||
) |
Set Exit action function.
Definition at line 316 of file StateMachine.py.
def OpenRTM_aist.StateMachine.StateMachine.setListener | ( | self, | |
listener | |||
) |
Set Listener Object.
Definition at line 205 of file StateMachine.py.
def OpenRTM_aist.StateMachine.StateMachine.setNOP | ( | self, | |
call_back | |||
) |
Set NOP function.
Definition at line 184 of file StateMachine.py.
def OpenRTM_aist.StateMachine.StateMachine.setNullFunc | ( | self, | |
s, | |||
nullfunc | |||
) |
Worker function.
Definition at line 503 of file StateMachine.py.
def OpenRTM_aist.StateMachine.StateMachine.setPostDoAction | ( | self, | |
state, | |||
call_back | |||
) |
Set PostDo action function.
Definition at line 293 of file StateMachine.py.
def OpenRTM_aist.StateMachine.StateMachine.setPreDoAction | ( | self, | |
state, | |||
call_back | |||
) |
Set PreDo action function.
Definition at line 247 of file StateMachine.py.
def OpenRTM_aist.StateMachine.StateMachine.setStartState | ( | self, | |
states | |||
) |
Set Exit action function.
Definition at line 356 of file StateMachine.py.
def OpenRTM_aist.StateMachine.StateMachine.setTransitionAction | ( | self, | |
call_back | |||
) |
Set state transition action function.
Definition at line 339 of file StateMachine.py.
def OpenRTM_aist.StateMachine.StateMachine.sync | ( | self, | |
states | |||
) |
Definition at line 520 of file StateMachine.py.
def OpenRTM_aist.StateMachine.StateMachine.update_curr | ( | self, | |
curr | |||
) |
Definition at line 552 of file StateMachine.py.
def OpenRTM_aist.StateMachine.StateMachine.worker | ( | self | ) |
Worker function.
Definition at line 455 of file StateMachine.py.
|
private |
Definition at line 159 of file StateMachine.py.
|
private |
Definition at line 157 of file StateMachine.py.
|
private |
Definition at line 161 of file StateMachine.py.
|
private |
Definition at line 206 of file StateMachine.py.
|
private |
Definition at line 169 of file StateMachine.py.
|
private |
Definition at line 156 of file StateMachine.py.
|
private |
Definition at line 160 of file StateMachine.py.
|
private |
Definition at line 158 of file StateMachine.py.
|
private |
Definition at line 357 of file StateMachine.py.
|
private |
Definition at line 168 of file StateMachine.py.
|
static |
Definition at line 138 of file StateMachine.py.