#include <StateMachine.h>
◆ StateMachine()
openjaus::model::StateMachine::StateMachine |
( |
| ) |
|
◆ ~StateMachine()
openjaus::model::StateMachine::~StateMachine |
( |
| ) |
|
|
virtual |
◆ addDefaultStateTransition()
int openjaus::model::StateMachine::addDefaultStateTransition |
( |
Transition & |
transition | ) |
|
◆ addMessageCallback() [1/3]
template<class MessageType , class CallbackClass >
void openjaus::model::StateMachine::addMessageCallback |
( |
bool(CallbackClass::*)(MessageType &messageRef) |
callback, |
|
|
CallbackClass * |
object |
|
) |
| |
|
inline |
◆ addMessageCallback() [2/3]
template<class CallbackClass >
void openjaus::model::StateMachine::addMessageCallback |
( |
bool(CallbackClass::*)(Trigger *trigger) |
callback, |
|
|
CallbackClass * |
object |
|
) |
| |
|
inline |
◆ addMessageCallback() [3/3]
template<class MessageType >
void openjaus::model::StateMachine::addMessageCallback |
( |
bool(*)(MessageType &messageRef) |
callback | ) |
|
|
inline |
◆ addState()
int openjaus::model::StateMachine::addState |
( |
State & |
state | ) |
|
◆ enter()
void openjaus::model::StateMachine::enter |
( |
bool |
executeEntryActions, |
|
|
bool |
initializeStartState |
|
) |
| |
◆ executePopTransition()
bool openjaus::model::StateMachine::executePopTransition |
( |
| ) |
|
|
private |
◆ executePushTransition()
bool openjaus::model::StateMachine::executePushTransition |
( |
State * |
endState | ) |
|
|
private |
◆ executeSimpleTransition()
bool openjaus::model::StateMachine::executeSimpleTransition |
( |
State * |
endState | ) |
|
|
private |
◆ executeTransition() [1/3]
bool openjaus::model::StateMachine::executeTransition |
( |
Transition * |
transition | ) |
|
◆ executeTransition() [2/3]
void openjaus::model::StateMachine::executeTransition |
( |
State * |
startState, |
|
|
State * |
endState, |
|
|
bool |
executeExitActions, |
|
|
bool |
executeEntryActions |
|
) |
| |
|
private |
◆ executeTransition() [3/3]
void openjaus::model::StateMachine::executeTransition |
( |
struct TransitionData & |
data | ) |
|
|
private |
◆ exit()
void openjaus::model::StateMachine::exit |
( |
bool |
executeExitActions | ) |
|
◆ findCommonRootStateMachine()
StateMachine * openjaus::model::StateMachine::findCommonRootStateMachine |
( |
State * |
startState, |
|
|
State * |
endState |
|
) |
| |
|
private |
◆ findLowestCommonRoot()
◆ getActiveChildState()
State * openjaus::model::StateMachine::getActiveChildState |
( |
| ) |
const |
◆ getCurrentState() [1/3]
State * openjaus::model::StateMachine::getCurrentState |
( |
| ) |
const |
◆ getCurrentState() [2/3]
State * openjaus::model::StateMachine::getCurrentState |
( |
const std::string & |
serviceName | ) |
const |
◆ getCurrentState() [3/3]
State * openjaus::model::StateMachine::getCurrentState |
( |
const std::string & |
serviceName, |
|
|
State * |
currentMatch |
|
) |
| const |
|
private |
◆ getIntermediateStates()
std::list< State * > openjaus::model::StateMachine::getIntermediateStates |
( |
State * |
state, |
|
|
StateMachine * |
sm |
|
) |
| |
|
private |
◆ getLeafStates()
void openjaus::model::StateMachine::getLeafStates |
( |
std::vector< State *> & |
leafStates | ) |
const |
|
private |
◆ getName()
std::string openjaus::model::StateMachine::getName |
( |
| ) |
const |
◆ getParentState()
State * openjaus::model::StateMachine::getParentState |
( |
| ) |
const |
◆ getPathToRoot()
std::list< StateMachine * > openjaus::model::StateMachine::getPathToRoot |
( |
State * |
state | ) |
|
|
private |
◆ getQualifedName()
std::string openjaus::model::StateMachine::getQualifedName |
( |
| ) |
|
◆ getResponse()
Message * openjaus::model::StateMachine::getResponse |
( |
Trigger * |
trigger | ) |
|
◆ getStartingState()
State * openjaus::model::StateMachine::getStartingState |
( |
| ) |
const |
◆ hasState()
bool openjaus::model::StateMachine::hasState |
( |
State * |
state | ) |
|
|
private |
◆ processTrigger()
bool openjaus::model::StateMachine::processTrigger |
( |
Trigger * |
trigger | ) |
|
◆ removeDefaultStateTransition()
int openjaus::model::StateMachine::removeDefaultStateTransition |
( |
Transition & |
transition | ) |
|
◆ setActiveChildState()
void openjaus::model::StateMachine::setActiveChildState |
( |
State * |
state | ) |
|
◆ setName()
bool openjaus::model::StateMachine::setName |
( |
const std::string & |
name | ) |
|
◆ setParentState()
bool openjaus::model::StateMachine::setParentState |
( |
State * |
parentState | ) |
|
◆ setStartingState()
bool openjaus::model::StateMachine::setStartingState |
( |
State * |
startingState | ) |
|
◆ setStateStack()
void openjaus::model::StateMachine::setStateStack |
( |
std::list< State *> * |
stateStack | ) |
|
◆ toString()
std::string openjaus::model::StateMachine::toString |
( |
| ) |
const |
|
virtual |
◆ operator<< [1/2]
◆ operator<< [2/2]
◆ activeChildState
State* openjaus::model::StateMachine::activeChildState |
|
private |
◆ callbacks
◆ childStates
std::vector<State*> openjaus::model::StateMachine::childStates |
|
private |
◆ defaultStateTransitions
std::vector<Transition*> openjaus::model::StateMachine::defaultStateTransitions |
|
private |
◆ mutex
◆ name
std::string openjaus::model::StateMachine::name |
|
private |
◆ parentState
State* openjaus::model::StateMachine::parentState |
|
private |
◆ startingState
State* openjaus::model::StateMachine::startingState |
|
private |
◆ stateStack
std::list<State*>* openjaus::model::StateMachine::stateStack |
|
private |
The documentation for this class was generated from the following files: