Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

DC_TestPUSConfigurableManoeuvre Class Reference

#include <DC_TestPUSConfigurableManoeuvre.h>

Inheritance diagram for DC_TestPUSConfigurableManoeuvre:

PUSTcManoeuvre Manoeuvre CC_RootObject List of all members.

Detailed Description

Test implementation of the 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.

Author:
Alessandro Pasetti (P&P Software GmbH)
Version:
1.0

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.


Constructor & Destructor Documentation

DC_TestPUSConfigurableManoeuvre::DC_TestPUSConfigurableManoeuvre void   ) 
 

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.


Member Function Documentation

bool DC_TestPUSConfigurableManoeuvre::canContinue void   )  [virtual]
 

Return the value of the continuation check flag.

The value of the continuation check flag can be set by the user through method setCheckStatus.

See also:
#setCheckStatus
Returns:
true if the manoeuvre can continue execution

Reimplemented from Manoeuvre.

Definition at line 41 of file DC_TestPUSConfigurableManoeuvre.cpp.

bool DC_TestPUSConfigurableManoeuvre::canStart void   )  [virtual]
 

Return the value of the start check flag.

The value of the start check flag can be set by the user through method setCheckStatus.

See also:
#setCheckStatus
Returns:
true if the manoeuvre is ready to start

Reimplemented from Manoeuvre.

Definition at line 31 of file DC_TestPUSConfigurableManoeuvre.cpp.

void DC_TestPUSConfigurableManoeuvre::doInternalContinue void   )  [protected, virtual]
 

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();

See also:
PUSManoeuvre#generateProgressEvent

Manoeuvre::doContinue

Implements Manoeuvre.

Definition at line 46 of file DC_TestPUSConfigurableManoeuvre.cpp.

int DC_TestPUSConfigurableManoeuvre::getContinuationActionCounter void   ) 
 

Getter method for the continuation action counter.

See also:
doInternalContinue
Returns:
the continuation action counter

Definition at line 81 of file DC_TestPUSConfigurableManoeuvre.cpp.

TD_CheckCode DC_TestPUSConfigurableManoeuvre::getContinuationCheckCode  )  const [virtual]
 

Get the value of the continuation check code.

In this class, the value of the continuation check code can be set by the user.

See also:
setContinuationCheckCode return the return value of the continuation check

Reimplemented from Manoeuvre.

Definition at line 69 of file DC_TestPUSConfigurableManoeuvre.cpp.

int DC_TestPUSConfigurableManoeuvre::getInitializationActionCounter void   ) 
 

Getter method for the initialization action counter.

See also:
initialize
Returns:
the initialization action counter

Definition at line 77 of file DC_TestPUSConfigurableManoeuvre.cpp.

int DC_TestPUSConfigurableManoeuvre::getTerminationActionCounter void   ) 
 

Getter method for the termination action counter.

See also:
internalTerminate
Returns:
the termination action counter

Definition at line 85 of file DC_TestPUSConfigurableManoeuvre.cpp.

void DC_TestPUSConfigurableManoeuvre::internalTerminate void   )  [protected, virtual]
 

Increment the termination action counter by one.

See also:
Manoeuvre::terminate

Reimplemented from Manoeuvre.

Definition at line 27 of file DC_TestPUSConfigurableManoeuvre.cpp.

bool DC_TestPUSConfigurableManoeuvre::isFinished void   )  [virtual]
 

Return the value of the termination check flag.

The value of the termination check flag can be set by the user through method setCheckStatus.

See also:
#setCheckStatus
Returns:
true if the manoeuvre has terminated execution

Implements Manoeuvre.

Definition at line 52 of file DC_TestPUSConfigurableManoeuvre.cpp.

void DC_TestPUSConfigurableManoeuvre::setContinuationCheckCode TD_CheckCode  continuationCheckCode  ) 
 

Set the value of the continuation check code.

The value set with this method is the value returned by method getContinuationCheckCode.

See also:
canContinue
Parameters:
continuationCheckCode the return value of the continuation check

Definition at line 65 of file DC_TestPUSConfigurableManoeuvre.cpp.

void DC_TestPUSConfigurableManoeuvre::setContinuationCheckStatus bool  continuationCheck  ) 
 

Set the value of the continuation check.

The value set with this method is the value returned by the continuation check method.

See also:
canContinue
Parameters:
continuationCheck the return value of the continuation check

Definition at line 61 of file DC_TestPUSConfigurableManoeuvre.cpp.

void DC_TestPUSConfigurableManoeuvre::setStartCheckStatus bool  startCheck  ) 
 

Set the value of the start check.

The value set with this method is the value returned by the start check method.

See also:
canStart
Parameters:
startCheck the return value of the start check

Definition at line 57 of file DC_TestPUSConfigurableManoeuvre.cpp.

void DC_TestPUSConfigurableManoeuvre::setTerminationCheckStatus bool  terminationCheck  ) 
 

Set the value of the termination check.

The value set with this method is the value returned by the termination check methods.

See also:
isFinished
Parameters:
terminationCheck the return value of the termination check

Definition at line 73 of file DC_TestPUSConfigurableManoeuvre.cpp.


The documentation for this class was generated from the following files:
Copyright 2003 P&P Software GmbH - All Rights Reserved