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.

virtual ~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 the required algorithm.

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

algorithmTaskgetAlgorithmTask (std::string name) const
 returns the required algorithmTask.

void addAlgorithmTask (std::string name, algorithmTask* alg)
 add an algorithmTask into the server.

eventTaskgetEventTask (std::string name) const
 returns the required eventTask. More...

void addEventTask (std::string name, eventTask* evt)
 add an eventTask into the server.

algConditionalTaskgetAlgConditionalTask (std::string name) const
 returns the required algConditionalTask.

void addAlgConditionalTask (std::string name, algConditionalTask* alg)
 add an algConditionalTask 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

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 algorithmVI s.

serverVI<eventTask>* m_eventTasks
 pointer to the eventTask Server.

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

serverVI<algConditionalTask>* m_algConditionalTasks
 pointer to the server of algConditionalTask.

std::string m_applicationName
 name of the application.

std::string m_eventTaskName
 dummy - name of the eventTask to create.

std::string m_algorithmTaskName
 dummy - name of the algorithmTask to create.

std::string m_algConditionalTaskName
 dummy - name of the conditionalTask to create.


Static Private Attributes

processManager* m_instance = 0
 Singleton: pointer to itself.


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 64 of file processManager.h.


Constructor & Destructor Documentation

processManager::processManager ( )

constructor - creates the algorithmUserServer.

Definition at line 9 of file processManager.cpp.

processManager::~processManager ( ) [inline, virtual]

destructor - delete the algorithmUserServer.

add a new algorithmTask into the server

Definition at line 68 of file processManager.cpp.


Member Function Documentation

void processManager::addAlgConditionalTask ( std::string name,
algConditionalTask * alg )

add an algConditionalTask into the server.

Definition at line 112 of file processManager.cpp.

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

add algorithms into the server.

Definition at line 87 of file processManager.cpp.

void processManager::addAlgorithmTask ( std::string name,
algorithmTask * alg )

add an algorithmTask into the server.

Definition at line 94 of file processManager.cpp.

void processManager::addEventTask ( std::string name,
eventTask * evt )

add an eventTask into the server.

Definition at line 103 of file processManager.cpp.

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

define the options.

Reimplemented from optionVI.

Definition at line 155 of file processManager.cpp.

algConditionalTask * processManager::getAlgConditionalTask ( std::string name ) const

returns the required algConditionalTask.

Definition at line 147 of file processManager.cpp.

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

returns the required algorithm.

Definition at line 121 of file processManager.cpp.

algorithmTask * processManager::getAlgorithmTask ( std::string name ) const

returns the required algorithmTask.

Definition at line 139 of file processManager.cpp.

eventTask * processManager::getEventTask ( std::string name ) const

returns the required eventTask.

search in algorithms. Note that algorithmTask, eventTask and algConditionalTask should be already included into the algorithm server

Definition at line 131 of file processManager.cpp.

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

Singleton, pointer to the class.

Definition at line 75 of file processManager.h.

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

runs a given algorithm.

Definition at line 80 of file processManager.h.

void processManager::runApplication ( ) const [inline]

runs the application.

Definition at line 78 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 48 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 168 of file processManager.cpp.


Member Data Documentation

std::string processManager::m_algConditionalTaskName [private]

dummy - name of the conditionalTask to create.

Definition at line 134 of file processManager.h.

serverVI<algConditionalTask>* processManager::m_algConditionalTasks [private]

pointer to the server of algConditionalTask.

Definition at line 124 of file processManager.h.

std::string processManager::m_algorithmTaskName [private]

dummy - name of the algorithmTask to create.

Definition at line 132 of file processManager.h.

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

pointer to the server of algorithmTask.

Definition at line 122 of file processManager.h.

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

pointer to the server of algorithmVI s.

Definition at line 118 of file processManager.h.

std::string processManager::m_applicationName [private]

name of the application.

Definition at line 127 of file processManager.h.

std::string processManager::m_eventTaskName [private]

dummy - name of the eventTask to create.

Definition at line 130 of file processManager.h.

serverVI<eventTask>* processManager::m_eventTasks [private]

pointer to the eventTask Server.

Definition at line 120 of file processManager.h.

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

Singleton: pointer to itself.

Definition at line 115 of file processManager.h.


The documentation for this class was generated from the following files:
Generated at Fri Aug 18 12:57:41 2000 for centella framework by doxygen 1.1.3 written by Dimitri van Heesch, © 1997-2000