#include <GLBaseEvaluator.h>
Public Member Functions | |
GLBaseEvaluator () | |
virtual | ~GLBaseEvaluator () |
virtual GLBaseFitness * | evaluateOrganism (GLBaseOrganism *organism)=0 |
long | getCounter () const |
virtual int | getNumberOfObjectives () const =0 |
void | increaseCounter () |
void | resetCounter () |
Definition at line 9 of file GLBaseEvaluator.h.
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.
virtual GLBaseFitness* GLBaseEvaluator::evaluateOrganism | ( | GLBaseOrganism * | organism | ) | [pure virtual] |
Evaluates fitness function of the organism.
organism | organism to be evaluated. |
Implemented in GLTestEvaluator.
long GLBaseEvaluator::getCounter | ( | ) | const [inline] |
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.