GeneticAlgoithm
Implementation of the genetic algorithm
Public Member Functions | Protected Attributes | List of all members
IModel Class Referenceabstract

Abstract class describing the interface for a model. More...

#include <IModel.h>

Inheritance diagram for IModel:
Inheritance graph
[legend]

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.
 

Detailed Description

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.

Definition at line 13 of file IModel.h.

Constructor & Destructor Documentation

◆ IModel()

IModel::IModel ( )

Default Constructor.

Definition at line 3 of file IModel.cxx.

◆ ~IModel()

IModel::~IModel ( )
pure virtual

Destructor.

Definition at line 9 of file IModel.cxx.

Member Function Documentation

◆ getScore()

double IModel::getScore ( ) const

Returns the score for this model.

Returns
The score for this model.

Definition at line 16 of file IModel.cxx.

◆ setScore()

void IModel::setScore ( double  score)

Sets the score for this model.

Parameters
scoreThe score for this model.

Definition at line 24 of file IModel.cxx.


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