Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

processManager Class Reference

Stores, servers and runs the algorithms and the multialgorithms. More...

#include <processManager.h>

Inheritance diagram for processManager:

serviceI messageVI optionVI nameVI nameVI List of all members.

Public Methods

 processManager ()
 constructor - creates the algorithmUserServer.

 ~processManager ()
 destructor - delete the algorithmUserServer. More...

void runApplication () const
 runs the application.

void run (std::string name) const
 runs a given algorithm.

algorithmVIgetAlgorithm (std::string name) const
 returns an algorithm with an name.

void addAlgorithm (std::string name, algorithmVI* alg)
 add algorithms into the server.

virtual void writeOut () const
 write the information of this class. More...


Static Public Methods

processManager* instance ()
 Singleton, pointer to the class.


Protected Methods

eventProcessgetEventProcess (std::string name) const
 returns a eventProcess with a name. More...

algorithmTaskgetAlgorithmTask (std::string name) const
 returns a algorithmTask with a name.

virtual void defineOption ()
 define the options.

virtual void setOption (std::string type, std::string name)
 create and include the evtProcess and endRunProcess that the User wants to execute. More...


Private Attributes

serverVI<algorithmVI>* m_algorithms
 pointer to the server of algorithmUserServer.

serverVI<eventProcess>* m_eventProcesses
 pointer to the evtProcess Server.

serverVI<algorithmTask>* m_algorithmTasks
 pointer to the server of endRunProcess.

algorithmTaskm_iniRun
 algorithmTask for the initialization of the run.

algorithmTaskm_endRun
 algorithmTask for the end of the run.

eventProcessm_runEvent
 algorithmTask for process an event.

std::string m_applicationName
 name of the application.

std::string m_eventProcessName
 dummy string to optionVI.

std::string m_algorithmTaskName
 dummy string to optionVI.


Static Private Attributes

processManager* m_instance = 0
 Singleton: pointer to itself.


Friends

class  eventProcess
class  algorithmTask


Detailed Description

Stores, servers and runs the algorithms and the multialgorithms.

ProcessManager stores the system and user declared algorithms.
ProcessManager returns the algorithms via the template method getAlgorithm().
General features:

Centella features:

Definition at line 57 of file processManager.h.


Constructor & Destructor Documentation

processManager::processManager ( )

constructor - creates the algorithmUserServer.

Definition at line 9 of file processManager.cpp.

processManager::~processManager ( )

destructor - delete the algorithmUserServer.

add a new algorithmTask into the server

Definition at line 68 of file processManager.cpp.


Member Function Documentation

void processManager::addAlgorithm ( std::string name,
algorithmVI * alg )

add algorithms into the server.

Definition at line 76 of file processManager.cpp.

void processManager::defineOption ( ) [inline, protected, virtual]

define the options.

Reimplemented from optionVI.

Definition at line 114 of file processManager.cpp.

algorithmVI * processManager::getAlgorithm ( std::string name ) const

returns an algorithm with an name.

Definition at line 85 of file processManager.cpp.

algorithmTask * processManager::getAlgorithmTask ( std::string name ) const [protected]

returns a algorithmTask with a name.

Definition at line 105 of file processManager.cpp.

eventProcess * processManager::getEventProcess ( std::string name ) const [protected]

returns a eventProcess with a name.

search in algorithms, eventProcess and algorithmTask servers the required algorithmVI

Definition at line 97 of file processManager.cpp.

processManager * processManager::instance ( ) [inline, static]

Singleton, pointer to the class.

Definition at line 71 of file processManager.h.

void processManager::run ( std::string name ) const [inline]

runs a given algorithm.

Definition at line 76 of file processManager.h.

void processManager::runApplication ( ) const [inline]

runs the application.

Definition at line 74 of file processManager.h.

void processManager::setOption ( std::string type,
std::string name ) [inline, protected, virtual]

create and include the evtProcess and endRunProcess that the User wants to execute.

create and add into the server the user defined algorithms

Reimplemented from optionVI.

Definition at line 50 of file processManager.cpp.

void processManager::writeOut ( ) const [inline, virtual]

write the information of this class.

define "application" to set the name of the application algoritm

Reimplemented from messageVI.

Definition at line 125 of file processManager.cpp.


Friends And Related Function Documentation

class algorithmTask [friend]

Definition at line 61 of file processManager.h.

class eventProcess [friend]

Definition at line 60 of file processManager.h.


Member Data Documentation

std::string processManager::m_algorithmTaskName [private]

dummy string to optionVI.

Definition at line 122 of file processManager.h.

serverVI<algorithmTask>* processManager::m_algorithmTasks [private]

pointer to the server of endRunProcess.

Definition at line 108 of file processManager.h.

serverVI<algorithmVI>* processManager::m_algorithms [private]

pointer to the server of algorithmUserServer.

Definition at line 104 of file processManager.h.

std::string processManager::m_applicationName [private]

name of the application.

Definition at line 118 of file processManager.h.

algorithmTask * processManager::m_endRun [private]

algorithmTask for the end of the run.

Definition at line 113 of file processManager.h.

std::string processManager::m_eventProcessName [private]

dummy string to optionVI.

Definition at line 120 of file processManager.h.

serverVI<eventProcess>* processManager::m_eventProcesses [private]

pointer to the evtProcess Server.

Definition at line 106 of file processManager.h.

algorithmTask * processManager::m_iniRun [private]

algorithmTask for the initialization of the run.

Definition at line 111 of file processManager.h.

processManager * processManager::m_instance = 0 [static, private]

Singleton: pointer to itself.

Definition at line 101 of file processManager.h.

eventProcess * processManager::m_runEvent [private]

algorithmTask for process an event.

Definition at line 115 of file processManager.h.


The documentation for this class was generated from the following files:
Generated at Thu Jun 22 16:53:29 2000 for Centella Framework by doxygen 1.1.3 written by Dimitri van Heesch, © 1997-2000