GLBaseEvaluator Class Reference

#include <GLBaseEvaluator.h>

Inheritance diagram for GLBaseEvaluator:

GLTestEvaluator

List of all members.

Public Member Functions

 GLBaseEvaluator ()
virtual ~GLBaseEvaluator ()
virtual GLBaseFitnessevaluateOrganism (GLBaseOrganism *organism)=0
long getCounter () const
virtual int getNumberOfObjectives () const =0
void increaseCounter ()
void resetCounter ()


Detailed Description

Base evaluator for all organisms.

Definition at line 9 of file GLBaseEvaluator.h.


Constructor & Destructor Documentation

GLBaseEvaluator::GLBaseEvaluator (  )  [inline]

Simple constructor.

Definition at line 15 of file GLBaseEvaluator.h.

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

Destructor.

Definition at line 21 of file GLBaseEvaluator.h.


Member Function Documentation

virtual GLBaseFitness* GLBaseEvaluator::evaluateOrganism ( GLBaseOrganism organism  )  [pure virtual]

Evaluates fitness function of the organism.

Parameters:
organism organism to be evaluated.
Returns:
fitness value storage.

Implemented in GLTestEvaluator.

long GLBaseEvaluator::getCounter (  )  const [inline]

Returns the current value of the counter.

Returns:
the current value of the counter.

Definition at line 34 of file GLBaseEvaluator.h.

virtual int GLBaseEvaluator::getNumberOfObjectives (  )  const [pure virtual]

Returns the number of objectives in fittness function. Makes it possible to distinguish between single and multiple objective optimisation even if the same GA is used for optimisation.

Implemented in GLTestEvaluator.

void GLBaseEvaluator::increaseCounter (  )  [inline]

Increases the value of the internal counter.

Definition at line 47 of file GLBaseEvaluator.h.

void GLBaseEvaluator::resetCounter (  )  [inline]

Sets the internal counter to zero.

Definition at line 53 of file GLBaseEvaluator.h.


The documentation for this class was generated from the following file:

Generated on Sat Jun 13 13:58:05 2009 for GenLib by  doxygen 1.5.9