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

TelemetryModeManager Class Reference
[Mode ManagementTelemetry Management]

#include <TelemetryModeManager.h>

Inheritance diagram for TelemetryModeManager:

ModeManager CC_RootObject DC_PUSTelemetryModeManager TelemetryListModeManager DC_CyclingTelemetryModeManager DC_SimpleTelemetryModeManager List of all members.

Detailed Description

Base abstract class for mode manager components for the telemetry manager.

A telemetry mode manager handles one single strategy, which is represented by a set of telemetry packet components. To every operational mode, the telemetry mode manager associates a set of telemetry packets. Client access the items in this set through four iteration methods: first, next, isIterationFinished, and getIterationTelemetryPacket.

This is an abstract class because it specifies neither the implementation mechanism for the set of telemetry packets nor the mode update mechanism.

See also:
CC_TelemetryManager

TelemetryPacket

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

Definition at line 37 of file TelemetryModeManager.h.

Public Member Functions

 TelemetryModeManager (void)
 Instantiate a telemetry mode manager.

virtual void first (void)=0
 Iteration method to iterate through the items in the set of telemetry packets applicable to the current operational mode.

virtual void next (void)=0
 Iteration method to be used in conjunction with methods first and isIterationFinished.

virtual bool isIterationFinished (void)=0
 Iteration method to be used in conjunction with methods first and next.

virtual TelemetryPacketgetIterationTelemetryPacket (void)=0
 Return the telemetry packet pointed at by the iterator.


Constructor & Destructor Documentation

TelemetryModeManager::TelemetryModeManager void   ) 
 

Instantiate a telemetry mode manager.

This constructor returns without taking any action.

Definition at line 13 of file TelemetryModeManager.cpp.


Member Function Documentation

virtual void TelemetryModeManager::first void   )  [pure virtual]
 

Iteration method to iterate through the items in the set of telemetry packets applicable to the current operational mode.

This method should be used jointly with methods: next, isIterationFinished and getTelemetryPacket. Taken together, these methods allow all the items in the currently applicable set of telemetry packets to be scanned. During an iteration cycle, an internal pointer, the iteration pointer, is made to scan over all the items in the currently applicable set of telemetry packets. The item currently pointed at by the iteration counter can be retrieved through method getTelemetryPacket. Thus, a typical iteration cycle might be organized as follows:

      for (first(); !isIterationFinished(); next()) {
          pItem = getTelemetryPacket();
          . . .    // process pItem
      }  
See also:
#getIterationItem

Implemented in DC_PUSTelemetryModeManager, and TelemetryListModeManager.

virtual TelemetryPacket* TelemetryModeManager::getIterationTelemetryPacket void   )  [pure virtual]
 

Return the telemetry packet pointed at by the iterator.

This method is a type-safe wrapper for method getIteratorItem in the superclass.

See also:
first
Returns:
the telemetry packet pointed at by the iterator

Implemented in DC_PUSTelemetryModeManager, and TelemetryListModeManager.

virtual bool TelemetryModeManager::isIterationFinished void   )  [pure virtual]
 

Iteration method to be used in conjunction with methods first and next.

This method should only be used as part of an iteration cycle. The result of calling it before ever calling first is undefined.

See also:
first
Returns:
true if the end of the iteration has been reached, false otherwise

Implemented in DC_PUSTelemetryModeManager, and TelemetryListModeManager.

virtual void TelemetryModeManager::next void   )  [pure virtual]
 

Iteration method to be used in conjunction with methods first and isIterationFinished.

See also:
first

Implemented in DC_PUSTelemetryModeManager, and TelemetryListModeManager.


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