OpenJAUS Software Development Kit
4.3.1
|
This is a brief description. More...
#include <State.h>
Public Member Functions | |
State () | |
virtual | ~State () |
std::string | getName () const |
Accessor to get the value of name. More... | |
bool | setName (std::string name) |
Accessor to set value of name. More... | |
bool | isStartingState () const |
Accessor to get the value of startingState. More... | |
bool | setStartingState (bool startingState) |
Accessor to set value of startingState. More... | |
std::string | getServiceName () const |
Accessor to get the value of serviceName. More... | |
bool | setServiceName (std::string serviceName) |
Accessor to set value of serviceName. More... | |
const std::vector< StateMachine *> & | getStateMachines () const |
Accessor to get the value of stateMachines. More... | |
bool | setStateMachines (const StateMachine &stateMachines) |
Accessor to set value of stateMachines. More... | |
const std::vector< Transition *> & | getTransitions () const |
Accessor to get the value of transitions. More... | |
bool | setTransitions (const Transition &transitions) |
Accessor to set value of transitions. More... | |
std::vector< Action *> * | getEntryActions () const |
Accessor to get the value of entryActions. More... | |
bool | setEntryActions (Action *entryActions) |
Accessor to set value of entryActions. More... | |
std::vector< Action *> * | getExitActions () const |
Accessor to get the value of exitActions. More... | |
bool | setExitActions (Action *exitActions) |
Accessor to set value of exitActions. More... | |
StateMachine * | getParentStateMachine () const |
Accessor to get the value of parentStateMachine. More... | |
bool | setParentStateMachine (StateMachine *parentStateMachine) |
Accessor to set value of parentStateMachine. More... | |
Transition * | getLoop () const |
Accessor to get the value of loop. More... | |
bool | setLoop (Transition *loop) |
Accessor to set value of loop. More... | |
virtual Transition * | processTrigger (Trigger *trigger) |
StateMachine | getStateMachine (std::string stateMachineName) |
Operation getStateMachine. More... | |
int | addStateMachine (StateMachine &stateMachine) |
Operation addStateMachine. More... | |
int | addTransition (Transition &transition) |
Operation addTransition. More... | |
int | removeTransition (Transition &transition) |
Operation removeTransition. More... | |
Message * | getResponse (Trigger *trigger) |
void | entry () |
Operation entry. More... | |
void | exit () |
Operation exit. More... | |
std::string | getQualifiedName () |
Operation getQualifiedName. More... | |
virtual std::string | toString () const |
template<class C > | |
void | addEntryAction (void(C::*fp)(), C *object) |
template<class C > | |
void | addExitAction (void(C::*fp)(), C *object) |
Protected Attributes | |
std::string | name |
bool | startingState |
std::string | serviceName |
std::vector< StateMachine *> | stateMachines |
std::vector< Transition *> | transitions |
std::vector< Action *> * | entryActions |
std::vector< Action *> * | exitActions |
StateMachine * | parentStateMachine |
Transition * | loop |
Friends | |
OPENJAUS_EXPORT friend std::ostream & | operator<< (std::ostream &output, const State &object) |
OPENJAUS_EXPORT friend std::ostream & | operator<< (std::ostream &output, const State *object) |
Detailed description.
openjaus::model::State::State | ( | ) |
|
virtual |
|
inline |
|
inline |
int openjaus::model::State::addStateMachine | ( | StateMachine & | stateMachine | ) |
stateMachine |
int openjaus::model::State::addTransition | ( | Transition & | transition | ) |
transition |
void openjaus::model::State::entry | ( | ) |
void openjaus::model::State::exit | ( | ) |
std::vector< Action *> * openjaus::model::State::getEntryActions | ( | ) | const |
std::vector< Action *> * openjaus::model::State::getExitActions | ( | ) | const |
Transition * openjaus::model::State::getLoop | ( | ) | const |
std::string openjaus::model::State::getName | ( | void | ) | const |
StateMachine * openjaus::model::State::getParentStateMachine | ( | ) | const |
std::string openjaus::model::State::getQualifiedName | ( | ) |
std::string openjaus::model::State::getServiceName | ( | ) | const |
StateMachine openjaus::model::State::getStateMachine | ( | std::string | stateMachineName | ) |
stateMachineName |
const std::vector< StateMachine *> & openjaus::model::State::getStateMachines | ( | ) | const |
const std::vector< Transition *> & openjaus::model::State::getTransitions | ( | ) | const |
bool openjaus::model::State::isStartingState | ( | ) | const |
|
virtual |
trigger |
int openjaus::model::State::removeTransition | ( | Transition & | transition | ) |
transition |
bool openjaus::model::State::setEntryActions | ( | Action * | entryActions | ) |
entryActions | The value of the new entryActions. |
bool openjaus::model::State::setExitActions | ( | Action * | exitActions | ) |
exitActions | The value of the new exitActions. |
bool openjaus::model::State::setLoop | ( | Transition * | loop | ) |
loop | The value of the new loop. |
bool openjaus::model::State::setName | ( | std::string | name | ) |
name | The value of the new name. |
bool openjaus::model::State::setParentStateMachine | ( | StateMachine * | parentStateMachine | ) |
parentStateMachine | The value of the new parentStateMachine. |
bool openjaus::model::State::setServiceName | ( | std::string | serviceName | ) |
serviceName | The value of the new serviceName. |
bool openjaus::model::State::setStartingState | ( | bool | startingState | ) |
startingState | The value of the new startingState. |
bool openjaus::model::State::setStateMachines | ( | const StateMachine & | stateMachines | ) |
stateMachines | The value of the new stateMachines. |
bool openjaus::model::State::setTransitions | ( | const Transition & | transitions | ) |
transitions | The value of the new transitions. |
|
virtual |
|
friend |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |