LoveBrains  1.0.0
Public Member Functions | List of all members
GA::IDNA Class Referenceabstract

Define the interface that will be used to create an supported individual for the GAEngine. More...

#include <i_dna.h>

Inheritance diagram for GA::IDNA:
GANN::GANN GANN::GANN

Public Member Functions

virtual ~IDNA (void)
 Destructor.
 
virtual double getFitness (void) const =0
 Get the fitness of the individual. More...
 
virtual void setFitness (double fitness)=0
 Set the fitness of the individual. More...
 
virtual void Print (void)=0
 Allow to draw the individual on the shell.
 
virtual double getFitness (void) const =0
 
virtual void setFitness (double fitness)=0
 
virtual void Print (void)=0
 

Detailed Description

Define the interface that will be used to create an supported individual for the GAEngine.

Member Function Documentation

virtual double GA::IDNA::getFitness ( void  ) const
pure virtual

Get the fitness of the individual.

Returns
double : fitness

Implemented in GANN::GANN, and GANN::GANN.

virtual void GA::IDNA::setFitness ( double  fitness)
pure virtual

Set the fitness of the individual.

Parameters
fitness: Contains the new fitness.

Implemented in GANN::GANN, and GANN::GANN.


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