Signals | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
packml_sm::StateMachine Class Reference

#include <state_machine.h>

Inheritance diagram for packml_sm::StateMachine:
Inheritance graph
[legend]

List of all members.

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

WaitStateabortable_
WaitStateaborted_
ActingStateaborting_
ActingStateclearing_
WaitStatecomplete_
ActingStatecompleting_
DualStateexecute_
WaitStateheld_
ActingStateholding_
WaitStateidle_
ActingStateresetting_
QStateMachine sm_internal_
ActingStatestarting_
QString state_name_
int state_value_
WaitStatestoppable_
WaitStatestopped_
ActingStatestopping_
WaitStatesuspended_
ActingStatesuspending_
ActingStateunholding_
ActingStateunsuspending_

Detailed Description

Definition at line 88 of file state_machine.h.


Constructor & Destructor Documentation

Definition at line 280 of file src/state_machine.cpp.

Definition at line 210 of file src/state_machine.cpp.


Member Function Documentation

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.

Implements packml_sm::StateMachineInterface.

Definition at line 285 of file src/state_machine.cpp.

Definition at line 189 of file src/state_machine.cpp.

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]

Member Data Documentation

Definition at line 140 of file state_machine.h.

Definition at line 147 of file state_machine.h.

Definition at line 158 of file state_machine.h.

Definition at line 157 of file state_machine.h.

Definition at line 146 of file state_machine.h.

Definition at line 152 of file state_machine.h.

Definition at line 160 of file state_machine.h.

Definition at line 142 of file state_machine.h.

Definition at line 150 of file state_machine.h.

Definition at line 143 of file state_machine.h.

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.

Definition at line 151 of file state_machine.h.

Definition at line 138 of file state_machine.h.

Definition at line 137 of file state_machine.h.

Definition at line 141 of file state_machine.h.

Definition at line 145 of file state_machine.h.

Definition at line 156 of file state_machine.h.

Definition at line 144 of file state_machine.h.

Definition at line 155 of file state_machine.h.

Definition at line 149 of file state_machine.h.

Definition at line 154 of file state_machine.h.


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


packml_sm
Author(s): Shaun Edwards
autogenerated on Sat Jun 8 2019 20:13:34