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

algorithmConditional Class Reference

algorithm that runs only if a cut condition is fulfill. More...

#include <algorithmConditional.h>

Inheritance diagram for algorithmConditional:

algorithmVI algConditionalTask List of all members.

Public Methods

 algorithmConditional ()
 default constructor - set the null the member variables.

virtual ~algorithmConditional ()
 default destructor.

virtual void setCut (cutVI* cut)
 set the cut of the algorithm conditional.

virtual void setAlgorithm (algorithmVI* alg)
 set the algorithm.

virtual void initialize ()
 initialize the algorithm only if the cut is fulfill.

virtual void execute ()
 execute the algorithm only if the cut is fulfill.

virtual void finalize ()
 finalize the algorithm only if the cut is fulfill.


Protected Methods

virtual bool condition ()
 returns true if the condition is fulfill.


Private Attributes

cutVIm_cut
 pointer to the cut.

algorithmVIm_alg
 pointer to the algorithm.


Detailed Description

algorithm that runs only if a cut condition is fulfill.

\algorithmConditional is an algorithm.
\algorithmConditional runs its internal algorithm when a cut condition is fulfill.

Definition at line 22 of file algorithmConditional.h.


Constructor & Destructor Documentation

algorithmConditional::algorithmConditional ( ) [inline]

default constructor - set the null the member variables.

Definition at line 28 of file algorithmConditional.h.

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

default destructor.

Definition at line 30 of file algorithmConditional.h.


Member Function Documentation

bool algorithmConditional::condition ( ) [inline, protected, virtual]

returns true if the condition is fulfill.

Definition at line 47 of file algorithmConditional.h.

void algorithmConditional::execute ( ) [inline, virtual]

execute the algorithm only if the cut is fulfill.

Reimplemented from algorithmVI.

Definition at line 40 of file algorithmConditional.h.

void algorithmConditional::finalize ( ) [inline, virtual]

finalize the algorithm only if the cut is fulfill.

Reimplemented from algorithmVI.

Definition at line 42 of file algorithmConditional.h.

void algorithmConditional::initialize ( ) [inline, virtual]

initialize the algorithm only if the cut is fulfill.

Reimplemented from algorithmVI.

Definition at line 38 of file algorithmConditional.h.

void algorithmConditional::setAlgorithm ( algorithmVI * alg ) [inline, virtual]

set the algorithm.

Definition at line 35 of file algorithmConditional.h.

void algorithmConditional::setCut ( cutVI * cut ) [inline, virtual]

set the cut of the algorithm conditional.

Definition at line 33 of file algorithmConditional.h.


Member Data Documentation

algorithmVI * algorithmConditional::m_alg [private]

pointer to the algorithm.

Definition at line 54 of file algorithmConditional.h.

cutVI * algorithmConditional::m_cut [private]

pointer to the cut.

Definition at line 52 of file algorithmConditional.h.


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