#include <DC_DummyConfigurableFsmState.h>
Inheritance diagram for DC_DummyConfigurableFsmState:
It represents an FsmState with simple actions and configurable check results. The actions associated to the FsmState consist in the incrementation of three counters: the activation counter, initialization counter and the termination counter. The checks associated to the FsmState are implemented to return user-defined values.
Definition at line 32 of file DC_DummyConfigurableFsmState.h.
Public Member Functions | |
DC_DummyConfigurableFsmState (void) | |
Instantiate a dummy FsmState object, initialize all the action counters to zero, the initialization and exit check to true, and the termination check to false. | |
virtual void | doContinue (void) |
Implement dummy continued action: the method increments the activation counter by 1 returns. | |
virtual bool | canEnter (void) |
Return the value set by the user with the last call to setInitializationCheckValue . | |
virtual void | doInit (void) |
Implement dummy initialization action: the method increments the initialization counter by 1 returns. | |
virtual bool | canExit (void) |
Return the value set by the user with the last call to setExitCheckValue . | |
virtual void | doExit (void) |
Implement dummy exit action: the method increments the exit counter by 1 returns. | |
virtual bool | isFinished (void) |
Return the value set by the user with the last call to setTerminationCheckValue . | |
unsigned int | getActivationCounter (void) |
Return the value of the activation counter. | |
unsigned int | getInitializationCounter (void) |
Return the value of the initialization counter. | |
unsigned int | getExitCounter (void) |
Return the value of the exit counter. | |
void | setInitializationCheckValue (bool value) |
Set the return value of the initialization check. | |
void | setExitCheckValue (bool value) |
Set the return value of the exit check. | |
void | setTerminationCheckValue (bool value) |
Set the return value of the termination check. |
|
Return the value set by the user with the last call to
Reimplemented from FsmState. Definition at line 43 of file DC_DummyConfigurableFsmState.cpp. |
|
Return the value set by the user with the last call to
Reimplemented from FsmState. Definition at line 39 of file DC_DummyConfigurableFsmState.cpp. |
|
Implement dummy continued action: the method increments the activation counter by 1 returns.
Implements FsmState. Definition at line 24 of file DC_DummyConfigurableFsmState.cpp. |
|
Implement dummy exit action: the method increments the exit counter by 1 returns.
Reimplemented from FsmState. Definition at line 34 of file DC_DummyConfigurableFsmState.cpp. |
|
Implement dummy initialization action: the method increments the initialization counter by 1 returns.
Reimplemented from FsmState. Definition at line 29 of file DC_DummyConfigurableFsmState.cpp. |
|
Return the value of the activation counter.
Definition at line 51 of file DC_DummyConfigurableFsmState.cpp. |
|
Return the value of the exit counter.
Definition at line 59 of file DC_DummyConfigurableFsmState.cpp. |
|
Return the value of the initialization counter.
Definition at line 55 of file DC_DummyConfigurableFsmState.cpp. |
|
Return the value set by the user with the last call to
Reimplemented from FsmState. Definition at line 47 of file DC_DummyConfigurableFsmState.cpp. |
|
Set the return value of the exit check.
Definition at line 67 of file DC_DummyConfigurableFsmState.cpp. |
|
Set the return value of the initialization check.
Definition at line 63 of file DC_DummyConfigurableFsmState.cpp. |
|
Set the return value of the termination check.
Definition at line 71 of file DC_DummyConfigurableFsmState.cpp. |