All Packages Class Hierarchy This Package Previous Next Index
Class evolution.Individual
java.lang.Object
|
+----evolution.Individual
- public class Individual
- extends Object
We distinguish between an individual and its genes, because the genes
are constant, but the value of the individual might change during its lifetime.
The Individual is neither supposed to be able to calculate its value nor
to know the structure of its genome: this is the business of the Evaluator.
It is, however, a good idea to cache the value (fitness) in the Individual
if the calculation is non-trivial.
-
genome
- My genetic data
-
Individual(Genome)
- Create myself having the specified genome.
-
getGenome()
-
genome
protected Genome genome
- My genetic data
Individual
public Individual(Genome g)
- Create myself having the specified genome.
getGenome
public Genome getGenome()
- Returns:
- my genome
All Packages Class Hierarchy This Package Previous Next Index