BALL
1.4.79
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
BALL
DOCKING
GENETICDOCK
geneticIndividual.h
Go to the documentation of this file.
1
// ----------------------------------------------------
2
// $Maintainer: Marcel Schumann $
3
// $Authors: Jan Fuhrmann, Marcel Schumann $
4
// ----------------------------------------------------
5
6
#ifndef BALL_DOCKING_GENETICDOCK_GENETICINDIVIDUAL_H
7
#define BALL_DOCKING_GENETICDOCK_GENETICINDIVIDUAL_H
8
9
#include <vector>
10
11
#include <
BALL/DOCKING/GENETICDOCK/genes.h
>
12
13
namespace
BALL
14
{
15
class
BALL_EXPORT
GeneticIndividual
16
{
17
public
:
20
GeneticIndividual
();
21
24
GeneticIndividual
(
const
GeneticIndividual
& gi);
25
28
GeneticIndividual
& operator = (
const
GeneticIndividual
& gi);
29
32
~
GeneticIndividual
();
33
36
bool
operator<
(
const
GeneticIndividual
& gi)
const
;
37
40
void
setFitnessValue(
const
double
& d);
41
44
double
getFitnessValue();
45
48
void
setAltered(
bool
b);
49
52
bool
isAltered();
53
56
Size
numberOfGenes();
57
60
GenericGene
* getGene(
const
Size
& i);
61
64
void
insert(
GenericGene
* gg);
65
68
void
mate(
GeneticIndividual
& parent,
GeneticIndividual
& offspring);
69
72
bool
isMutated();
73
76
void
setMutated(
bool
);
77
80
void
randomize();
81
82
private
:
83
86
double
fitness_value_;
87
90
bool
altered_;
91
94
bool
mutated_;
95
98
std::vector<GenericGene*> genes_;
99
100
};
101
}
102
103
#endif
/* BALL_DOCKING_GENETICDOCK_GENETICINDIVIDUAL_H */
genes.h
BALL::GeneticIndividual
Definition:
geneticIndividual.h:15
BALL_SIZE_TYPE
BALL::GenericGene
Definition:
genes.h:18
BALL_EXPORT
#define BALL_EXPORT
Definition:
COMMON/global.h:50
BALL::operator<
BALL_EXPORT bool operator<(const String &s1, const String &s2)
Generated by
1.8.7