#include <DC_TestPUSConfigurableManoeuvre.h>
Inheritance diagram for DC_TestPUSConfigurableManoeuvre:
PUSManoeuvre
abstract class to be used for testing purposes.
This class implements some simple forms of manoeuvre actions and it allows the return values of the manoeuvre checks to be configured by the user.
This class associates three counters to each of the three actions (initialization action, continuation action, and termination action) that characterize a manoeuvre. The counters are initialized to zero by the constructor and are incremented by one every time the action is executed. Execution of the continuation action also causes the progress event generation service to be called. The return value of the three checks (start check, continuation check, and termination check) associated to the manoeuvres can be set be the user. The value of the continuation check code can also be set by the user.
Definition at line 37 of file DC_TestPUSConfigurableManoeuvre.h.
Public Member Functions | |
DC_TestPUSConfigurableManoeuvre (void) | |
Instantiate a test PUS configurable manoeuvre object. | |
virtual bool | canStart (void) |
Return the value of the start check flag. | |
virtual void | initialize (void) |
Increment the initialization action counter by one. | |
virtual bool | canContinue (void) |
Return the value of the continuation check flag. | |
virtual bool | isFinished (void) |
Return the value of the termination check flag. | |
void | setStartCheckStatus (bool startCheck) |
Set the value of the start check. | |
void | setContinuationCheckStatus (bool continuationCheck) |
Set the value of the continuation check. | |
void | setContinuationCheckCode (TD_CheckCode continuationCheckCode) |
Set the value of the continuation check code. | |
virtual TD_CheckCode | getContinuationCheckCode () const |
Get the value of the continuation check code. | |
void | setTerminationCheckStatus (bool terminationCheck) |
Set the value of the termination check. | |
int | getInitializationActionCounter (void) |
Getter method for the initialization action counter. | |
int | getContinuationActionCounter (void) |
Getter method for the continuation action counter. | |
int | getTerminationActionCounter (void) |
Getter method for the termination action counter. | |
Protected Member Functions | |
virtual void | doInternalContinue (void) |
Increment the continuation action counter by one and call the progress event generation service. | |
virtual void | internalTerminate (void) |
Increment the termination action counter by one. |
|
Instantiate a test PUS configurable manoeuvre object. The counters are initialized to zero; the return values of the start, continuation and termination check are initialized to false; and the class identified is set. Definition at line 17 of file DC_TestPUSConfigurableManoeuvre.cpp. |
|
Return the value of the continuation check flag.
The value of the continuation check flag can be set by the user through method
Reimplemented from Manoeuvre. Definition at line 41 of file DC_TestPUSConfigurableManoeuvre.cpp. |
|
Return the value of the start check flag.
The value of the start check flag can be set by the user through method
Reimplemented from Manoeuvre. Definition at line 31 of file DC_TestPUSConfigurableManoeuvre.cpp. |
|
Increment the continuation action counter by one and call the progress event generation service. A pseudo-code implementation of this method is as follows:<PRE> continuationActionCounter++; generateProgressEvent();
Implements Manoeuvre. Definition at line 46 of file DC_TestPUSConfigurableManoeuvre.cpp. |
|
Getter method for the continuation action counter.
Definition at line 81 of file DC_TestPUSConfigurableManoeuvre.cpp. |
|
Get the value of the continuation check code. In this class, the value of the continuation check code can be set by the user.
Reimplemented from Manoeuvre. Definition at line 69 of file DC_TestPUSConfigurableManoeuvre.cpp. |
|
Getter method for the initialization action counter.
Definition at line 77 of file DC_TestPUSConfigurableManoeuvre.cpp. |
|
Getter method for the termination action counter.
Definition at line 85 of file DC_TestPUSConfigurableManoeuvre.cpp. |
|
Increment the termination action counter by one.
Reimplemented from Manoeuvre. Definition at line 27 of file DC_TestPUSConfigurableManoeuvre.cpp. |
|
Return the value of the termination check flag.
The value of the termination check flag can be set by the user through method
Implements Manoeuvre. Definition at line 52 of file DC_TestPUSConfigurableManoeuvre.cpp. |
|
Set the value of the continuation check code.
The value set with this method is the value returned by method
Definition at line 65 of file DC_TestPUSConfigurableManoeuvre.cpp. |
|
Set the value of the continuation check. The value set with this method is the value returned by the continuation check method.
Definition at line 61 of file DC_TestPUSConfigurableManoeuvre.cpp. |
|
Set the value of the start check. The value set with this method is the value returned by the start check method.
Definition at line 57 of file DC_TestPUSConfigurableManoeuvre.cpp. |
|
Set the value of the termination check. The value set with this method is the value returned by the termination check methods.
Definition at line 73 of file DC_TestPUSConfigurableManoeuvre.cpp. |