#include <state_machine.h>
Signals | |
void | stateChanged (int value, QString name) |
Public Member Functions | |
bool | activate () |
bool | deactivate () |
int | getCurrentState () |
bool | isActive () |
bool | setAborting (std::function< int()> state_method) |
bool | setClearing (std::function< int()> state_method) |
bool | setCompleting (std::function< int()> state_method) |
bool | setExecute (std::function< int()> state_method) |
bool | setHolding (std::function< int()> state_method) |
bool | setIdle (std::function< int()> state_method) |
bool | setResetting (std::function< int()> state_method) |
bool | setStarting (std::function< int()> state_method) |
bool | setStopping (std::function< int()> state_method) |
bool | setSuspending (std::function< int()> state_method) |
bool | setUnholding (std::function< int()> state_method) |
bool | setUnsuspending (std::function< int()> state_method) |
virtual | ~StateMachine () |
Static Public Member Functions | |
static std::shared_ptr < StateMachine > | continuousCycleSM () |
static std::shared_ptr < StateMachine > | singleCyleSM () |
Protected Slots | |
void | setState (int value, QString name) |
Protected Member Functions | |
virtual void | _abort () |
virtual void | _clear () |
virtual void | _hold () |
virtual void | _reset () |
virtual void | _start () |
virtual void | _stop () |
virtual void | _suspend () |
virtual void | _unhold () |
virtual void | _unsuspend () |
StateMachine () | |
Protected Attributes | |
WaitState * | abortable_ |
WaitState * | aborted_ |
ActingState * | aborting_ |
ActingState * | clearing_ |
WaitState * | complete_ |
ActingState * | completing_ |
DualState * | execute_ |
WaitState * | held_ |
ActingState * | holding_ |
WaitState * | idle_ |
ActingState * | resetting_ |
QStateMachine | sm_internal_ |
ActingState * | starting_ |
QString | state_name_ |
int | state_value_ |
WaitState * | stoppable_ |
WaitState * | stopped_ |
ActingState * | stopping_ |
WaitState * | suspended_ |
ActingState * | suspending_ |
ActingState * | unholding_ |
ActingState * | unsuspending_ |
Definition at line 88 of file state_machine.h.
packml_sm::StateMachine::~StateMachine | ( | ) | [virtual] |
Definition at line 280 of file src/state_machine.cpp.
packml_sm::StateMachine::StateMachine | ( | ) | [protected] |
Definition at line 210 of file src/state_machine.cpp.
void packml_sm::StateMachine::_abort | ( | ) | [protected, virtual] |
Implements packml_sm::StateMachineInterface.
Definition at line 398 of file src/state_machine.cpp.
void packml_sm::StateMachine::_clear | ( | ) | [protected, virtual] |
Implements packml_sm::StateMachineInterface.
Definition at line 391 of file src/state_machine.cpp.
void packml_sm::StateMachine::_hold | ( | ) | [protected, virtual] |
Implements packml_sm::StateMachineInterface.
Definition at line 393 of file src/state_machine.cpp.
void packml_sm::StateMachine::_reset | ( | ) | [protected, virtual] |
Implements packml_sm::StateMachineInterface.
Definition at line 392 of file src/state_machine.cpp.
void packml_sm::StateMachine::_start | ( | ) | [protected, virtual] |
Implements packml_sm::StateMachineInterface.
Definition at line 390 of file src/state_machine.cpp.
void packml_sm::StateMachine::_stop | ( | ) | [protected, virtual] |
Implements packml_sm::StateMachineInterface.
Definition at line 397 of file src/state_machine.cpp.
void packml_sm::StateMachine::_suspend | ( | ) | [protected, virtual] |
Implements packml_sm::StateMachineInterface.
Definition at line 395 of file src/state_machine.cpp.
void packml_sm::StateMachine::_unhold | ( | ) | [protected, virtual] |
Implements packml_sm::StateMachineInterface.
Definition at line 394 of file src/state_machine.cpp.
void packml_sm::StateMachine::_unsuspend | ( | ) | [protected, virtual] |
Implements packml_sm::StateMachineInterface.
Definition at line 396 of file src/state_machine.cpp.
bool packml_sm::StateMachine::activate | ( | ) | [virtual] |
Implements packml_sm::StateMachineInterface.
Definition at line 285 of file src/state_machine.cpp.
std::shared_ptr< StateMachine > packml_sm::StateMachine::continuousCycleSM | ( | ) | [static] |
Definition at line 189 of file src/state_machine.cpp.
bool packml_sm::StateMachine::deactivate | ( | ) |
Definition at line 308 of file src/state_machine.cpp.
int packml_sm::StateMachine::getCurrentState | ( | ) | [inline, virtual] |
Implements packml_sm::StateMachineInterface.
Definition at line 117 of file state_machine.h.
bool packml_sm::StateMachine::isActive | ( | ) | [inline, virtual] |
Implements packml_sm::StateMachineInterface.
Definition at line 112 of file state_machine.h.
bool packml_sm::StateMachine::setAborting | ( | std::function< int()> | state_method | ) | [virtual] |
Implements packml_sm::StateMachineInterface.
Definition at line 336 of file src/state_machine.cpp.
bool packml_sm::StateMachine::setClearing | ( | std::function< int()> | state_method | ) | [virtual] |
Implements packml_sm::StateMachineInterface.
Definition at line 342 of file src/state_machine.cpp.
bool packml_sm::StateMachine::setCompleting | ( | std::function< int()> | state_method | ) | [virtual] |
Implements packml_sm::StateMachineInterface.
Definition at line 330 of file src/state_machine.cpp.
bool packml_sm::StateMachine::setExecute | ( | std::function< int()> | state_method | ) | [virtual] |
Implements packml_sm::StateMachineInterface.
Definition at line 384 of file src/state_machine.cpp.
bool packml_sm::StateMachine::setHolding | ( | std::function< int()> | state_method | ) | [virtual] |
Implements packml_sm::StateMachineInterface.
Definition at line 372 of file src/state_machine.cpp.
bool packml_sm::StateMachine::setIdle | ( | std::function< int()> | state_method | ) |
bool packml_sm::StateMachine::setResetting | ( | std::function< int()> | state_method | ) | [virtual] |
Implements packml_sm::StateMachineInterface.
Definition at line 354 of file src/state_machine.cpp.
bool packml_sm::StateMachine::setStarting | ( | std::function< int()> | state_method | ) | [virtual] |
Implements packml_sm::StateMachineInterface.
Definition at line 324 of file src/state_machine.cpp.
void packml_sm::StateMachine::setState | ( | int | value, |
QString | name | ||
) | [protected, slot] |
Definition at line 314 of file src/state_machine.cpp.
bool packml_sm::StateMachine::setStopping | ( | std::function< int()> | state_method | ) | [virtual] |
Implements packml_sm::StateMachineInterface.
Definition at line 348 of file src/state_machine.cpp.
bool packml_sm::StateMachine::setSuspending | ( | std::function< int()> | state_method | ) | [virtual] |
Implements packml_sm::StateMachineInterface.
Definition at line 360 of file src/state_machine.cpp.
bool packml_sm::StateMachine::setUnholding | ( | std::function< int()> | state_method | ) | [virtual] |
Implements packml_sm::StateMachineInterface.
Definition at line 378 of file src/state_machine.cpp.
bool packml_sm::StateMachine::setUnsuspending | ( | std::function< int()> | state_method | ) | [virtual] |
Implements packml_sm::StateMachineInterface.
Definition at line 366 of file src/state_machine.cpp.
std::shared_ptr< StateMachine > packml_sm::StateMachine::singleCyleSM | ( | ) | [static] |
Definition at line 183 of file src/state_machine.cpp.
void packml_sm::StateMachine::stateChanged | ( | int | value, |
QString | name | ||
) | [signal] |
WaitState* packml_sm::StateMachine::abortable_ [protected] |
Definition at line 140 of file state_machine.h.
WaitState* packml_sm::StateMachine::aborted_ [protected] |
Definition at line 147 of file state_machine.h.
ActingState* packml_sm::StateMachine::aborting_ [protected] |
Definition at line 158 of file state_machine.h.
ActingState* packml_sm::StateMachine::clearing_ [protected] |
Definition at line 157 of file state_machine.h.
WaitState* packml_sm::StateMachine::complete_ [protected] |
Definition at line 146 of file state_machine.h.
ActingState* packml_sm::StateMachine::completing_ [protected] |
Definition at line 152 of file state_machine.h.
DualState* packml_sm::StateMachine::execute_ [protected] |
Definition at line 160 of file state_machine.h.
WaitState* packml_sm::StateMachine::held_ [protected] |
Definition at line 142 of file state_machine.h.
ActingState* packml_sm::StateMachine::holding_ [protected] |
Definition at line 150 of file state_machine.h.
WaitState* packml_sm::StateMachine::idle_ [protected] |
Definition at line 143 of file state_machine.h.
ActingState* packml_sm::StateMachine::resetting_ [protected] |
Definition at line 153 of file state_machine.h.
QStateMachine packml_sm::StateMachine::sm_internal_ [protected] |
Definition at line 162 of file state_machine.h.
ActingState* packml_sm::StateMachine::starting_ [protected] |
Definition at line 151 of file state_machine.h.
QString packml_sm::StateMachine::state_name_ [protected] |
Definition at line 138 of file state_machine.h.
int packml_sm::StateMachine::state_value_ [protected] |
Definition at line 137 of file state_machine.h.
WaitState* packml_sm::StateMachine::stoppable_ [protected] |
Definition at line 141 of file state_machine.h.
WaitState* packml_sm::StateMachine::stopped_ [protected] |
Definition at line 145 of file state_machine.h.
ActingState* packml_sm::StateMachine::stopping_ [protected] |
Definition at line 156 of file state_machine.h.
WaitState* packml_sm::StateMachine::suspended_ [protected] |
Definition at line 144 of file state_machine.h.
ActingState* packml_sm::StateMachine::suspending_ [protected] |
Definition at line 155 of file state_machine.h.
ActingState* packml_sm::StateMachine::unholding_ [protected] |
Definition at line 149 of file state_machine.h.
ActingState* packml_sm::StateMachine::unsuspending_ [protected] |
Definition at line 154 of file state_machine.h.