#include <FSMCondition.h>
Inheritance diagram for FSM::CFSMConditionTestVariable::
Public Types | |
enum | OP { EQUAL, NEQUAL, GREATER, LESS, GREATER_EQ, LESS_EQ } |
Public Methods | |
virtual void | DeleteThis () |
"Destructor" Simple call delete this. More... | |
void | SetCondition (const char *varName, OP testCondition, int testValue) |
bool | SetExpression (const char *expression) |
const char * | GetVariable () const |
OP | GetCondition () const |
int | GetValue () const |
virtual bool | SetParameter (const char *paramName, const char *paramValue) |
virtual bool | CheckCondition (const char *event, void *a, void *b) |
CFiniteStateMachine * | GetFSM () const |
const char * | GetNameOfClass () const |
The class name is set by FiniteStateMachine::Create(). More... | |
Static Public Methods | |
CFSMObject * | Create () |
Protected Methods | |
virtual bool | SaveParameters (CFSMSaver *out) const |
Called by the saver. More... | |
virtual bool | Activate () |
virtual bool | Deactivate () |
void | SetFSM (CFiniteStateMachine *ptr) |
void | SetClassName (const char *name) |
Private Methods | |
CFSMConditionTestVariable () | |
virtual | ~CFSMConditionTestVariable () |
Private Attributes | |
string | variableName |
OP | condition |
int | value |
Friends | |
class | CFSMTransition |
class | CFiniteStateMachine |
|
Definition at line 95 of file FSMCondition.h. |
|
Definition at line 358 of file FSMCondition.cpp. |
|
Definition at line 362 of file FSMCondition.cpp. |
|
Definition at line 46 of file FSMCondition.cpp. |
|
Reimplemented from FSM::CFSMCondition. Definition at line 262 of file FSMCondition.cpp. References EQUAL, FSM::CFSMObject::GetFSM(), FSM::CFSMObject::GetNameOfClass(), GREATER, GREATER_EQ, iHandleLastError, iThrow(), LESS, LESS_EQ, NEQUAL, value, variableName, and WARNING. |
|
Definition at line 306 of file FSMCondition.cpp. |
|
Definition at line 51 of file FSMCondition.cpp. |
|
"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::CFSMObject. Definition at line 311 of file FSMCondition.cpp. |
|
Definition at line 86 of file FSMCondition.cpp. References condition. |
|
Definition at line 56 of file FSMObject.cpp. References FSM::CFSMObject::myStateMachine. Referenced by FSM::CFSMState::AddLeaveAction(), FSM::CFSMState::AddSimpleTransition(), CheckCondition(), FSM::CFSMPopTransition::Execute(), FSM::CFSMPushTransition::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(), CheckCondition(), FSM::CFSMState::Deactivate(), FSM::CFSMSimpleTransition::SetParameter(), SetParameter(), FSM::CFSMActionIncrVariable::SetParameter(), and FSM::CFSMActionSetVariable::SetParameter(). |
|
Definition at line 91 of file FSMCondition.cpp. References value. |
|
Definition at line 81 of file FSMCondition.cpp. References variableName. |
|
Called by the saver. Do not call directly. Overload and call out->SaveParameter() for each parameter. Reimplemented from FSM::CFSMObject. Definition at line 319 of file FSMCondition.cpp. |
|
Definition at line 61 of file FSMObject.cpp. References FSM::CFSMObject::ClassName. |
|
Definition at line 74 of file FSMCondition.cpp. |
|
Definition at line 96 of file FSMCondition.cpp. References SetParameter(), and value. Referenced by SetParameter(). |
|
Definition at line 51 of file FSMObject.cpp. |
|
Reimplemented from FSM::CFSMObject. Definition at line 191 of file FSMCondition.cpp. References condition, CRITICAL, EQUAL, FSM::CFSMObject::GetNameOfClass(), GREATER, GREATER_EQ, iThrow(), LESS, LESS_EQ, NEQUAL, SetExpression(), value, and variableName. Referenced by SetExpression(). |
|
Reimplemented from FSM::CFSMObject. Definition at line 93 of file FSMCondition.h. |
|
Reimplemented from FSM::CFSMCondition. Definition at line 92 of file FSMCondition.h. |
|
Definition at line 130 of file FSMCondition.h. Referenced by GetCondition(), and SetParameter(). |
|
Definition at line 131 of file FSMCondition.h. Referenced by CheckCondition(), GetValue(), SetExpression(), and SetParameter(). |
|
Definition at line 129 of file FSMCondition.h. Referenced by CheckCondition(), GetVariable(), and SetParameter(). |