|
BALL
1.4.79
|
#include <BALL/DOCKING/GENETICDOCK/geneticIndividual.h>
Public Member Functions | |
| GeneticIndividual () | |
| GeneticIndividual (const GeneticIndividual &gi) | |
| GeneticIndividual & | operator= (const GeneticIndividual &gi) |
| ~GeneticIndividual () | |
| bool | operator< (const GeneticIndividual &gi) const |
| void | setFitnessValue (const double &d) |
| double | getFitnessValue () |
| void | setAltered (bool b) |
| bool | isAltered () |
| Size | numberOfGenes () |
| GenericGene * | getGene (const Size &i) |
| void | insert (GenericGene *gg) |
| void | mate (GeneticIndividual &parent, GeneticIndividual &offspring) |
| bool | isMutated () |
| void | setMutated (bool) |
| void | randomize () |
Definition at line 15 of file geneticIndividual.h.
| BALL::GeneticIndividual::GeneticIndividual | ( | ) |
standard constructor
| BALL::GeneticIndividual::GeneticIndividual | ( | const GeneticIndividual & | gi | ) |
copy constructor
| BALL::GeneticIndividual::~GeneticIndividual | ( | ) |
destructor
| double BALL::GeneticIndividual::getFitnessValue | ( | ) |
get fitness score
| GenericGene* BALL::GeneticIndividual::getGene | ( | const Size & | i | ) |
get i-th gene
| void BALL::GeneticIndividual::insert | ( | GenericGene * | gg | ) |
push back gene gg
| bool BALL::GeneticIndividual::isAltered | ( | ) |
true if individual has changed since the last computation of the fitness score
| bool BALL::GeneticIndividual::isMutated | ( | ) |
true if indiviual has been mutated
| void BALL::GeneticIndividual::mate | ( | GeneticIndividual & | parent, |
| GeneticIndividual & | offspring | ||
| ) |
mate two individuals
| Size BALL::GeneticIndividual::numberOfGenes | ( | ) |
counts number of genes
| bool BALL::GeneticIndividual::operator< | ( | const GeneticIndividual & | gi | ) | const |
smaller operator regarding fitness score
| GeneticIndividual& BALL::GeneticIndividual::operator= | ( | const GeneticIndividual & | gi | ) |
assigment operator
| void BALL::GeneticIndividual::randomize | ( | ) |
randomize all genes
| void BALL::GeneticIndividual::setAltered | ( | bool | b | ) |
assigns value to altered_
| void BALL::GeneticIndividual::setFitnessValue | ( | const double & | d | ) |
assigns fitness score
| void BALL::GeneticIndividual::setMutated | ( | bool | ) |
assigns value to mutated_
1.8.7