Loading...
Searching...
No Matches
geneticIndividual.h
Go to the documentation of this file.
// ----------------------------------------------------
// $Maintainer: Marcel Schumann $
// $Authors: Jan Fuhrmann, Marcel Schumann $
// ----------------------------------------------------
#ifndef BALL_DOCKING_GENETICDOCK_GENETICINDIVIDUAL_H
#define BALL_DOCKING_GENETICDOCK_GENETICINDIVIDUAL_H
#include <vector>
#include <BALL/DOCKING/GENETICDOCK/genes.h>
namespace BALL
{
class BALL_EXPORT BALL_DEPRECATED GeneticIndividual
{
public:
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();
private:
double fitness_value_;
bool altered_;
bool mutated_;
std::vector<GenericGene*> genes_;
};
}
#endif /* BALL_DOCKING_GENETICDOCK_GENETICINDIVIDUAL_H */
BALL_DEPRECATED
#define BALL_DEPRECATED
Definition COMMON/global.h:64
BALL_EXPORT
#define BALL_EXPORT
Definition COMMON/global.h:50
BALL::GenericGene
Definition genes.h:19
BALL::GeneticIndividual::randomize
void randomize()
BALL::GeneticIndividual::setAltered
void setAltered(bool b)
BALL::GeneticIndividual::getFitnessValue
double getFitnessValue()
BALL::GeneticIndividual::operator<
bool operator<(const GeneticIndividual &gi) const
BALL::GeneticIndividual::isAltered
bool isAltered()
BALL::GeneticIndividual::setFitnessValue
void setFitnessValue(const double &d)
BALL::GeneticIndividual::mate
void mate(GeneticIndividual &parent, GeneticIndividual &offspring)
BALL::GeneticIndividual::getGene
GenericGene * getGene(const Size &i)
BALL::GeneticIndividual::GeneticIndividual
GeneticIndividual()
BALL::GeneticIndividual::numberOfGenes
Size numberOfGenes()
BALL::GeneticIndividual::insert
void insert(GenericGene *gg)
BALL::GeneticIndividual::isMutated
bool isMutated()
BALL::GeneticIndividual::setMutated
void setMutated(bool)
BALL::GeneticIndividual::GeneticIndividual
GeneticIndividual(const GeneticIndividual &gi)
BALL::GeneticIndividual::~GeneticIndividual
~GeneticIndividual()
genes.h
BALL
Definition constants.h:13
BALL::Size
BALL_SIZE_TYPE Size
Definition COMMON/global.h:114