#include <DC_DummyCriticalTelecommand.h>
Inheritance diagram for DC_DummyCriticalTelecommand:
This telecommand is useful for testing purposes. The telecommand maintains an execution counter that is initialized to zero when the telecommand object is first instantiated and is incremented by one every time the telecommand receives an execute
request. There is no way to reset the execution counter.
The telecommand offers a method to change the return value of its execution check and of its validity check. These are useful to simulate telecommands whose execution check returns "telecommand cannot executed" or whose validity check returns "telecommand not valid".
Definition at line 33 of file DC_DummyCriticalTelecommand.h.
Public Member Functions | |
DC_DummyCriticalTelecommand (void) | |
Instantiate a dummy telecommand. | |
unsigned int | getNumberOfExecutions (void) |
Getter method for numberOfExecutions . | |
virtual bool | isImageValid (void) |
The base class default implementation is overridden in order to be able to thoroughly test canExecute() . | |
void | setImageValidity (bool isValid) |
Setter method for imageValid . | |
Protected Member Functions | |
virtual TD_ActionOutcome | doCriticalAction (void) |
Increments numberOfExecutions and returns a code of "action successful". |
|
Instantiate a dummy telecommand. The execution counter is set to zero. The telecommand is configured to have an execution check that returns: "telecommand can executed" and a validity check that returns: "telecommand is valid". Definition at line 15 of file DC_DummyCriticalTelecommand.cpp. |
|
Increments
Implements CriticalTelecommand. Definition at line 22 of file DC_DummyCriticalTelecommand.cpp. |
|
Getter method for Used only for testing purposes.
Definition at line 28 of file DC_DummyCriticalTelecommand.cpp. |
|
The base class default implementation is overridden in order to be able to thoroughly test
This method returns the value of the
Reimplemented from CriticalTelecommand. Definition at line 32 of file DC_DummyCriticalTelecommand.cpp. |
|
Setter method for Used only for testing purposes.
Definition at line 36 of file DC_DummyCriticalTelecommand.cpp. |