|
GeneticAlgoithm
Implementation of the genetic algorithm
|
Abstract class describing the interface for a model. More...
#include <IModel.h>

Public Member Functions | |
| IModel () | |
| virtual | ~IModel ()=0 |
| double | getScore () const |
| void | setScore (double score) |
Protected Attributes | |
| double | m_score |
| Holds the score for this model. | |
Abstract class describing the interface for a model.
A model is an entity that can be scored to describe it's fittness to answer the solution to a given problem. The implementation details are left for the derived classes.
The only functionality provided in this interface is set/get accessors for the score. The score calculation is expected to be delegated to a class inheriting from IFigureOfMerit.
| IModel::IModel | ( | ) |
Default Constructor.
Definition at line 3 of file IModel.cxx.
|
pure virtual |
Destructor.
Definition at line 9 of file IModel.cxx.
| double IModel::getScore | ( | ) | const |
Returns the score for this model.
Definition at line 16 of file IModel.cxx.
| void IModel::setScore | ( | double | score | ) |
Sets the score for this model.
| score | The score for this model. |
Definition at line 24 of file IModel.cxx.
1.8.13