#include <DC_ControlAction.h>
Inheritance diagram for DC_ControlAction:
A control action has a settable attribute called target control block. A control action is implemented as a conditional punctual action whose execution action consists in sending a propagation request to the target control block. This class assumes that the target control block is already fully configured.
Control actions offer a reset service. A call to the reset service causes the target control block to be reset.
This class implements a default execution check that always returns "can execute". This means that, if the control action is enabled, then its execution will always result in the target control block receiving a propagation request. Subclasses can of course implement different execution checks.
Definition at line 37 of file DC_ControlAction.h.
Public Member Functions | |
DC_ControlAction (void) | |
Instantiate a control action. | |
void | setTargetControlBlock (ControlBlock *pBlock) |
Load the target control block. | |
ControlBlock * | getTargetControlBlock (void) |
Return the currently loaded target control block. | |
void | reset (void) |
Reset the target control block. | |
virtual bool | isObjectConfigured (void) |
Perform a class-specific configuration check on a control action. | |
Protected Member Functions | |
virtual bool | canExecute (void) |
Encapsulate an execution check that always returns "control action can execute". | |
virtual TD_ActionOutcome | doConditionalAction (void) |
Send a propagate request to the target control block. |
|
Instantiate a control action. This method sets the class identifier and initializes the target control block to an illegal value to signify that the component is not yet configured. Definition at line 18 of file DC_ControlAction.cpp. |
|
Encapsulate an execution check that always returns "control action can execute".
Implements ConditionalPunctualAction. Definition at line 29 of file DC_ControlAction.cpp. |
|
Send a propagate request to the target control block. This method always returns: "ACTION_SUCCESS"
Implements ConditionalPunctualAction. Definition at line 23 of file DC_ControlAction.cpp. |
|
Return the currently loaded target control block.
Definition at line 38 of file DC_ControlAction.cpp. |
|
Perform a class-specific configuration check on a control action. It is verified that the target control block has been loaded. Reimplemented from CC_RootObject. Definition at line 47 of file DC_ControlAction.cpp. |
|
Load the target control block.
Definition at line 33 of file DC_ControlAction.cpp. |