Public Member Functions | Static Public Attributes | Private Attributes | List of all members
OpenRTM_aist.StateMachine.StateMachine Class Reference

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
 

Detailed Description

 

Definition at line 134 of file StateMachine.py.

Constructor & Destructor Documentation

def OpenRTM_aist.StateMachine.StateMachine.__init__ (   self,
  num_of_state 
)

Constructor.

Definition at line 155 of file StateMachine.py.

Member Function Documentation

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.

Member Data Documentation

OpenRTM_aist.StateMachine.StateMachine._do
private

Definition at line 159 of file StateMachine.py.

OpenRTM_aist.StateMachine.StateMachine._entry
private

Definition at line 157 of file StateMachine.py.

OpenRTM_aist.StateMachine.StateMachine._exit
private

Definition at line 161 of file StateMachine.py.

OpenRTM_aist.StateMachine.StateMachine._listener
private

Definition at line 206 of file StateMachine.py.

OpenRTM_aist.StateMachine.StateMachine._mutex
private

Definition at line 169 of file StateMachine.py.

OpenRTM_aist.StateMachine.StateMachine._num
private

Definition at line 156 of file StateMachine.py.

OpenRTM_aist.StateMachine.StateMachine._postdo
private

Definition at line 160 of file StateMachine.py.

OpenRTM_aist.StateMachine.StateMachine._predo
private

Definition at line 158 of file StateMachine.py.

OpenRTM_aist.StateMachine.StateMachine._states
private

Definition at line 357 of file StateMachine.py.

OpenRTM_aist.StateMachine.StateMachine._transit
private

Definition at line 168 of file StateMachine.py.

tuple OpenRTM_aist.StateMachine.StateMachine.state_array
static
Initial value:
1 = (RTC.CREATED_STATE,
2  RTC.INACTIVE_STATE,
3  RTC.ACTIVE_STATE,
4  RTC.ERROR_STATE)

Definition at line 138 of file StateMachine.py.


The documentation for this class was generated from the following file:


openrtm_aist_python
Author(s): Shinji Kurihara
autogenerated on Thu Jun 6 2019 19:11:38