OpenJAUS Software Development Kit
4.3.1
|
This is a brief description. More...
#include <StateMachine.h>
Public Member Functions | |
StateMachine () | |
virtual | ~StateMachine () |
std::string | getName () const |
Accessor to get the value of name. More... | |
bool | setName (std::string name) |
Accessor to set value of name. More... | |
const std::list< State *> & | getStateStack () const |
Accessor to get the value of stateStack. More... | |
bool | setStateStack (std::list< State * > stateStack) |
Accessor to set value of stateStack. More... | |
const std::vector< State *> & | getStates () const |
Accessor to get the value of states. More... | |
bool | setStates (const State &states) |
Accessor to set value of states. More... | |
State * | getParentState () const |
Accessor to get the value of parentState. More... | |
bool | setParentState (State *parentState) |
Accessor to set value of parentState. More... | |
State * | getCurrentState () const |
Accessor to get the value of currentState. More... | |
State * | getStartingState () const |
Accessor to get the value of startingState. More... | |
bool | setStartingState (State *startingState) |
Accessor to set value of startingState. More... | |
const std::vector< Transition *> & | getDefaultStateTransitions () const |
Accessor to get the value of defaultStateTransitions. More... | |
bool | setDefaultStateTransitions (const Transition &defaultStateTransitions) |
Accessor to set value of defaultStateTransitions. More... | |
bool | processTrigger (Trigger *trigger) |
Operation processTrigger. More... | |
State | getState (std::string name) |
Operation getState. More... | |
int | addState (State &state) |
Operation addState. More... | |
int | addDefaultStateTransition (Transition &transition) |
Operation addDefaultStateTransition. More... | |
int | removeDefaultStateTransition (Transition &transition) |
Operation removeDefaultStateTransition. More... | |
Message * | getResponse (Trigger *trigger) |
bool | setCurrentState (State *state) |
Operation setCurrentState. More... | |
bool | executeTransition (Transition *transition) |
Operation executeTransition. More... | |
void | entry () |
Operation entry. More... | |
void | exit () |
Operation exit. More... | |
std::string | getQualifedName () |
Operation getQualifedName. More... | |
virtual std::string | toString () const |
template<class MessageType , class CallbackClass > | |
void | addMessageCallback (bool(CallbackClass::*callback)(MessageType &messageRef), CallbackClass *object) |
template<class CallbackClass > | |
void | addMessageCallback (bool(CallbackClass::*callback)(Trigger *trigger), CallbackClass *object) |
template<class MessageType > | |
void | addMessageCallback (bool(*callback)(MessageType &messageRef)) |
Protected Attributes | |
std::string | name |
std::list< State *> | stateStack |
std::vector< State *> | states |
State * | parentState |
State * | currentState |
State * | startingState |
std::vector< Transition *> | defaultStateTransitions |
std::vector< MessageCallback *> | callbacks |
Friends | |
OPENJAUS_EXPORT friend std::ostream & | operator<< (std::ostream &output, const StateMachine &object) |
OPENJAUS_EXPORT friend std::ostream & | operator<< (std::ostream &output, const StateMachine *object) |
Detailed description.
openjaus::model::StateMachine::StateMachine | ( | ) |
|
virtual |
int openjaus::model::StateMachine::addDefaultStateTransition | ( | Transition & | transition | ) |
transition |
|
inline |
|
inline |
|
inline |
int openjaus::model::StateMachine::addState | ( | State & | state | ) |
state |
void openjaus::model::StateMachine::entry | ( | ) |
bool openjaus::model::StateMachine::executeTransition | ( | Transition * | transition | ) |
transition |
void openjaus::model::StateMachine::exit | ( | ) |
State * openjaus::model::StateMachine::getCurrentState | ( | ) | const |
const std::vector< Transition *> & openjaus::model::StateMachine::getDefaultStateTransitions | ( | ) | const |
std::string openjaus::model::StateMachine::getName | ( | void | ) | const |
State * openjaus::model::StateMachine::getParentState | ( | ) | const |
std::string openjaus::model::StateMachine::getQualifedName | ( | ) |
State * openjaus::model::StateMachine::getStartingState | ( | ) | const |
State openjaus::model::StateMachine::getState | ( | std::string | name | ) |
name |
const std::vector< State *> & openjaus::model::StateMachine::getStates | ( | ) | const |
const std::list< State *> & openjaus::model::StateMachine::getStateStack | ( | ) | const |
bool openjaus::model::StateMachine::processTrigger | ( | Trigger * | trigger | ) |
trigger |
int openjaus::model::StateMachine::removeDefaultStateTransition | ( | Transition & | transition | ) |
transition |
bool openjaus::model::StateMachine::setCurrentState | ( | State * | state | ) |
state |
bool openjaus::model::StateMachine::setDefaultStateTransitions | ( | const Transition & | defaultStateTransitions | ) |
defaultStateTransitions | The value of the new defaultStateTransitions. |
bool openjaus::model::StateMachine::setName | ( | std::string | name | ) |
name | The value of the new name. |
bool openjaus::model::StateMachine::setParentState | ( | State * | parentState | ) |
parentState | The value of the new parentState. |
bool openjaus::model::StateMachine::setStartingState | ( | State * | startingState | ) |
startingState | The value of the new startingState. |
bool openjaus::model::StateMachine::setStates | ( | const State & | states | ) |
states | The value of the new states. |
bool openjaus::model::StateMachine::setStateStack | ( | std::list< State * > | stateStack | ) |
stateStack | The value of the new stateStack. |
|
virtual |
|
friend |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |