#include <FSMTransition.h>
Inheritance diagram for FSM::CFSMPushTransition::
Public Methods | |
CFSMState * | GetToState () const |
void | SetToState (const char *stateName) |
virtual bool | SetParameter (const char *paramName, const char *paramValue) |
CFSMAction * | AddAction (const char *className) |
CFSMAction * | GetAction (int index) const |
bool | DeleteAction (CFSMAction *action) |
Action_List::const_iterator | GetActionsBegin () const |
Use (*iterator) to get the pointer to the action. More... | |
Action_List::const_iterator | GetActionsEnd () const |
CFSMCondition * | AddCondition (const char *className="TestVariable") |
CFSMCondition * | GetCondition (int index) const |
bool | DeleteCondition (CFSMCondition *condition) |
Condition_List::const_iterator | GetConditionsBegin () const |
Use (*iterator) to get the pointer to the condition. More... | |
Condition_List::const_iterator | GetConditionsEnd () const |
CFSMState * | GetFromState () const |
const char * | GetOnEvent () const |
void | SetOnEvent (const char *event="ANY") |
CFiniteStateMachine * | GetFSM () const |
const char * | GetNameOfClass () const |
The class name is set by FiniteStateMachine::Create(). More... | |
Protected Methods | |
virtual void | DeleteThis () |
"Destructor" Simple call delete this. More... | |
virtual bool | Execute (const char *event, void *a, void *b) |
Called if the transition match. More... | |
CFSMPushTransition () | |
virtual | ~CFSMPushTransition () |
virtual bool | SaveParameters (CFSMSaver *out) const |
overloaded CFSMObject::SaveParameters. More... | |
void | SetFromState (const char *stateName) |
virtual bool | Check (bool &result, const char *event, void *a, void *b) |
the answer is in result!!! More... | |
virtual bool | Activate () |
Called when the state is activated. More... | |
virtual bool | Deactivate () |
Called when the state is deactivated Calls Deactivate() of conditions (e.g. More... | |
void | SetFSM (CFiniteStateMachine *ptr) |
void | SetClassName (const char *name) |
Static Protected Methods | |
CFSMObject * | Create () |
Friends | |
class | CFSMState |
class | CFiniteStateMachine |
The state is pushed to the stack.
Definition at line 210 of file FSMTransition.h.
|
Definition at line 432 of file FSMTransition.cpp. |
|
Definition at line 436 of file FSMTransition.cpp. |
|
Called when the state is activated. Calls Activate() of conditions (e.g. to start a timer) Definition at line 286 of file FSMTransition.cpp. References iRethrow. |
|
Definition at line 64 of file FSMTransition.cpp. References iRethrow. |
|
Definition at line 135 of file FSMTransition.cpp. References iRethrow. |
|
the answer is in result!!!
Definition at line 236 of file FSMTransition.cpp. |
|
Reimplemented from FSM::CFSMSimpleTransition. Definition at line 477 of file FSMTransition.cpp. |
|
Called when the state is deactivated Calls Deactivate() of conditions (e.g. to stop a timer) Definition at line 301 of file FSMTransition.cpp. References iRethrow, and FSM::CFSMTransition::m_Conditions. |
|
Definition at line 100 of file FSMTransition.cpp. References CRITICAL, iThrow(), and FSM::CFSMTransition::m_Actions. |
|
Definition at line 171 of file FSMTransition.cpp. References CRITICAL, iThrow(), and FSM::CFSMTransition::m_Conditions. |
|
"Destructor" Simple call delete this. This is needed because of the memory management in shared libraries. Provide a static method "Create" in derived classes that returns a new instance of that class and use DeleteThis to destroy it. The constructor and destructor shuld be protected. Reimplemented from FSM::CFSMSimpleTransition. Definition at line 482 of file FSMTransition.cpp. |
|
Called if the transition match. Execute actions and switch to a new state with push. Reimplemented from FSM::CFSMSimpleTransition. Definition at line 449 of file FSMTransition.cpp. References CFSMState, FSM::CFSMObject::GetFSM(), FSM::CFSMSimpleTransition::GetToState(), and iRethrow. |
|
Definition at line 79 of file FSMTransition.cpp. References CRITICAL, iThrow(), and FSM::CFSMTransition::m_Actions. |
|
Use (*iterator) to get the pointer to the action. Use ++iterator to get the next iterator.
Definition at line 122 of file FSMTransition.cpp. References FSM::CFSMTransition::m_Actions. |
|
Definition at line 127 of file FSMTransition.cpp. References FSM::CFSMTransition::m_Actions. |
|
Definition at line 150 of file FSMTransition.cpp. References CRITICAL, iThrow(), and FSM::CFSMTransition::m_Conditions. |
|
Use (*iterator) to get the pointer to the condition. Use ++iterator to get the next iterator.
Definition at line 193 of file FSMTransition.cpp. References FSM::CFSMTransition::m_Conditions. |
|
Definition at line 198 of file FSMTransition.cpp. References FSM::CFSMTransition::m_Conditions. |
|
Definition at line 216 of file FSMTransition.cpp. References FSM::CFSMTransition::CFSMState, FSM::CFSMObject::GetFSM(), iRethrow, and FSM::CFSMTransition::m_FromState. Referenced by FSM::CFSMSimpleTransition::GetToState(). |
|
Definition at line 56 of file FSMObject.cpp. References FSM::CFSMObject::myStateMachine. Referenced by FSM::CFSMState::AddLeaveAction(), FSM::CFSMState::AddSimpleTransition(), FSM::CFSMConditionTestVariable::CheckCondition(), FSM::CFSMPopTransition::Execute(), Execute(), FSM::CFSMSimpleTransition::Execute(), FSM::CFSMTransition::GetFromState(), and FSM::CFSMSimpleTransition::GetToState(). |
|
The class name is set by FiniteStateMachine::Create(). So do not make Create methods public. Definition at line 66 of file FSMObject.cpp. References FSM::CFSMObject::ClassName. Referenced by FSM::CFSMState::Activate(), FSM::CFSMConditionTestVariable::CheckCondition(), FSM::CFSMState::Deactivate(), FSM::CFSMSimpleTransition::SetParameter(), FSM::CFSMConditionTestVariable::SetParameter(), FSM::CFSMActionIncrVariable::SetParameter(), and FSM::CFSMActionSetVariable::SetParameter(). |
|
Definition at line 227 of file FSMTransition.cpp. References FSM::CFSMTransition::m_Event. |
|
Definition at line 342 of file FSMTransition.cpp. References FSM::CFSMSimpleTransition::CFSMState, FSM::CFSMTransition::GetFromState(), FSM::CFSMObject::GetFSM(), iRethrow, and FSM::CFSMSimpleTransition::m_ToState. Referenced by Execute(), and FSM::CFSMSimpleTransition::Execute(). |
|
overloaded CFSMObject::SaveParameters.
Reimplemented from FSM::CFSMObject. Definition at line 363 of file FSMTransition.cpp. References iRethrow. |
|
Definition at line 61 of file FSMObject.cpp. References FSM::CFSMObject::ClassName. |
|
Definition at line 206 of file FSMTransition.cpp. |
|
Definition at line 51 of file FSMObject.cpp. |
|
Definition at line 211 of file FSMTransition.cpp. References FSM::CFSMTransition::m_Event. |
|
Reimplemented from FSM::CFSMObject. Definition at line 369 of file FSMTransition.cpp. References CRITICAL, FSM::CFSMObject::GetNameOfClass(), iThrow(), and FSM::CFSMSimpleTransition::SetToState(). |
|
Definition at line 336 of file FSMTransition.cpp. References FSM::CFSMSimpleTransition::m_ToState. Referenced by FSM::CFSMSimpleTransition::SetParameter(). |
|
Reimplemented from FSM::CFSMSimpleTransition. Definition at line 214 of file FSMTransition.h. |
|
Reimplemented from FSM::CFSMSimpleTransition. Definition at line 213 of file FSMTransition.h. Referenced by Execute(). |