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

DC_DummyModeManager Class Reference

#include <DC_DummyModeManager.h>

Inheritance diagram for DC_DummyModeManager:

ModeManager CC_RootObject List of all members.

Detailed Description

Dummy mode manager to be used for testing purposes.

This mode manager does not define any strategies. Its implementation of the update service consists in cycling through all possible operational modes.

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

Definition at line 25 of file DC_DummyModeManager.h.

Public Member Functions

 DC_DummyModeManager (void)
 Instantiate a dummy mode manager.

virtual void update (void)
 Cycle through the operational mode.


Protected Member Functions

virtual void allocateMemory (TD_Mode numberOfModes)
 This method returns without taking any action.


Constructor & Destructor Documentation

DC_DummyModeManager::DC_DummyModeManager void   ) 
 

Instantiate a dummy mode manager.

This constructor sets the class identifier and then returns.

Definition at line 15 of file DC_DummyModeManager.cpp.


Member Function Documentation

void DC_DummyModeManager::allocateMemory TD_Mode  numberOfModes  )  [protected, virtual]
 

This method returns without taking any action.

No action is required because this implementation of a mode manager does not use any internal data structures.

Implements ModeManager.

Definition at line 26 of file DC_DummyModeManager.cpp.

void DC_DummyModeManager::update void   )  [virtual]
 

Cycle through the operational mode.

Let N be the number of modes and C be the current mode. If C is smaller than (N-1), then this method returns C+1. Otherwise it returns 0.

See also:
ModeManager#Update
Returns:
returns the update operational mode

Implements ModeManager.

Definition at line 19 of file DC_DummyModeManager.cpp.


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