#include <DC_DummyConfigurableManoeuvre.h>
Inheritance diagram for DC_DummyConfigurableManoeuvre:
Manoeuvre
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. 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 36 of file DC_DummyConfigurableManoeuvre.h.
Public Member Functions | |
DC_DummyConfigurableManoeuvre (void) | |
Instantiate a dummy 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. | |
virtual void | internalTerminate (void) |
Increment the termination action counter by one. |
|
Instantiate a dummy 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 16 of file DC_DummyConfigurableManoeuvre.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 40 of file DC_DummyConfigurableManoeuvre.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 30 of file DC_DummyConfigurableManoeuvre.cpp. |
|
Increment the continuation action counter by one.
Implements Manoeuvre. Definition at line 45 of file DC_DummyConfigurableManoeuvre.cpp. |
|
Getter method for the continuation action counter.
Definition at line 79 of file DC_DummyConfigurableManoeuvre.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 67 of file DC_DummyConfigurableManoeuvre.cpp. |
|
Getter method for the initialization action counter.
Definition at line 75 of file DC_DummyConfigurableManoeuvre.cpp. |
|
Getter method for the termination action counter.
Definition at line 83 of file DC_DummyConfigurableManoeuvre.cpp. |
|
Increment the termination action counter by one.
Reimplemented from Manoeuvre. Definition at line 26 of file DC_DummyConfigurableManoeuvre.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 50 of file DC_DummyConfigurableManoeuvre.cpp. |
|
Set the value of the continuation check code.
The value set with this method is the value returned by method
Definition at line 63 of file DC_DummyConfigurableManoeuvre.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 59 of file DC_DummyConfigurableManoeuvre.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 55 of file DC_DummyConfigurableManoeuvre.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 71 of file DC_DummyConfigurableManoeuvre.cpp. |