BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
BALL::GeneticIndividual Class Reference

#include <BALL/DOCKING/GENETICDOCK/geneticIndividual.h>

Public Member Functions

 GeneticIndividual ()
 
 GeneticIndividual (const GeneticIndividual &gi)
 
GeneticIndividualoperator= (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 ()
 
GenericGenegetGene (const Size &i)
 
void insert (GenericGene *gg)
 
void mate (GeneticIndividual &parent, GeneticIndividual &offspring)
 
bool isMutated ()
 
void setMutated (bool)
 
void randomize ()
 

Detailed Description

Definition at line 15 of file geneticIndividual.h.

Constructor & Destructor Documentation

BALL::GeneticIndividual::GeneticIndividual ( )

standard constructor

BALL::GeneticIndividual::GeneticIndividual ( const GeneticIndividual gi)

copy constructor

BALL::GeneticIndividual::~GeneticIndividual ( )

destructor

Member Function Documentation

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_