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

PunctualActionModeManager Class Reference
[Mode Management]

#include <PunctualActionModeManager.h>

Inheritance diagram for PunctualActionModeManager:

ModeManager CC_RootObject PunctualActionListModeManager DC_CyclingPunctualActionModeManager DC_SimplePunctualActionModeManager List of all members.

Detailed Description

Base abstract class for mode manager components for the punctual action manager.

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

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

Todo:
Create a class DC_FSMPunctualActionModeManager where the mode is driven by an FSM. Same thing should be done for the TelemetryModeManager
See also:
CC_PunctualActionManager

PunctualAction

Author:
Alessandro Pasetti

Roberto Totaro

Version:
1.0

Definition at line 40 of file PunctualActionModeManager.h.

Public Member Functions

 PunctualActionModeManager (void)
 Instantiate a punctual action mode manager.

virtual void first (void)=0
 Iteration method to iterate through the items in the set of punctual actions 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 PunctualActiongetIterationPunctualAction (void)=0
 Return the punctual action item pointed at by the iterator.


Constructor & Destructor Documentation

PunctualActionModeManager::PunctualActionModeManager void   ) 
 

Instantiate a punctual action mode manager.

This constructor returns without taking any action.

Definition at line 13 of file PunctualActionModeManager.cpp.


Member Function Documentation

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

Iteration method to iterate through the items in the set of punctual actions applicable to the current operational mode.

This method should be used jointly with methods: next, isIterationFinished and getIterationPunctualAction. Taken together, these methods allow all the items in the currently applicable set of punctual actions 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 getIterationPunctualAction. Thus, a typical iteration cycle might be organized as follows:

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

Implemented in PunctualActionListModeManager.

virtual PunctualAction* PunctualActionModeManager::getIterationPunctualAction void   )  [pure virtual]
 

Return the punctual action item pointed at by the iterator.

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

See also:
ListModeManager#getIterationItem
Returns:
the punctual action item pointed at by the iterator

Implemented in PunctualActionListModeManager.

virtual bool PunctualActionModeManager::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 PunctualActionListModeManager.

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

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

See also:
first

Implemented in PunctualActionListModeManager.


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