#include <GLFitness.h>
Public Member Functions | |
GLFitness (const TFitness &value) | |
GLFitness (const GLFitness< TFitness > &source) | |
virtual | ~GLFitness () |
virtual GLBaseFitness * | copy () const |
const TFitness & | getValue () const |
virtual bool | isEqual (const GLBaseFitness *fitness) const |
virtual bool | isLess (const GLBaseFitness *fitness) const |
void | setValue (const TFitness &value) |
Definition at line 11 of file GLFitness.h.
Constructor to store the value of the fittness function.
value | fitness value. |
Copying constructor.
source | sourse of the fitness value. |
Simple destructor.
Definition at line 29 of file GLFitness.h.
virtual GLBaseFitness* GLFitness< TFitness >::copy | ( | ) | const [inline, virtual] |
Returns the copy of the fittness class.
Implements GLBaseFitness.
Reimplemented in GLFitnessSingleObjective< TFitness >.
Definition at line 35 of file GLFitness.h.
const TFitness& GLFitness< TFitness >::getValue | ( | ) | const [inline] |
virtual bool GLFitness< TFitness >::isEqual | ( | const GLBaseFitness * | fitness | ) | const [virtual] |
Returns true if 2 fitness values are equal.
Implements GLBaseFitness.
virtual bool GLFitness< TFitness >::isLess | ( | const GLBaseFitness * | fitness | ) | const [virtual] |
Returns true if this fitness is less then the one passed as a parameter.
fitness | pointer to fitness to make a comparison with. |
Implements GLBaseFitness.
void GLFitness< TFitness >::setValue | ( | const TFitness & | value | ) | [inline] |
Sets the value of the fitness.
value | new value of the fitness. |
Definition at line 61 of file GLFitness.h.