|
IntrOS
|
create and initialize a hierarchical state machine object More...
#include <osstatemachine.h>
Public Member Functions | |
| StateMachineT () | |
| constructor, see the constructor parameters of the class | |
| StateMachineT (const std::vector< Action > &_tab) | |
| constructor, see the constructor parameters of the class | |
| StateMachineT (StateMachineT &&_src) | |
| move constructor | |
| StateMachineT (const StateMachineT &)=delete | |
| StateMachineT & | operator= (StateMachineT &&)=delete |
| StateMachineT & | operator= (const StateMachineT &)=delete |
| template<class S, typename... A> | |
| void | add (S &_owner, unsigned _event, A &&... _args) |
| add an action (parameters of the Action constructor) to the table of the state machine | |
| void | add (const std::vector< Action > &_tab) |
| add the actions to the table of the state machine | |
| void | start (tsk_t &_task, hsm_state_t &_init) |
| link the actions of the table and start the state machine (hsm_start()) | |
| void | reset () |
| hsm_reset() | |
| void | kill () |
| hsm_kill() | |
| int | give (unsigned _event) |
| hsm_give() | |
| template<typename T> | |
| int | sendFor (unsigned _event, const T &_delay) |
| hsm_sendFor() | |
| template<typename T> | |
| int | sendUntil (unsigned _event, const T &_time) |
| hsm_sendUntil() | |
| int | send (unsigned _event) |
| hsm_send() | |
| void | push (unsigned _event) |
| hsm_push() | |
| hsm_state_t * | getState () |
| hsm_getState() | |
| void | startAsync (tsk_t &_task, hsm_state_t &_init) |
| link the actions of the table and start the state machine (hsm_startAsync()) | |
| int | giveAsync (unsigned _event) |
| hsm_giveAsync() | |
| int | sendAsync (unsigned _event) |
| hsm_sendAsync() | |
create and initialize a hierarchical state machine object