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.


Variable Index

 o genome
My genetic data

Constructor Index

 o Individual(Genome)
Create myself having the specified genome.

Method Index

 o getGenome()

Variables

 o genome
 protected Genome genome
My genetic data

Constructors

 o Individual
 public Individual(Genome g)
Create myself having the specified genome.

Methods

 o getGenome
 public Genome getGenome()
Returns:
my genome

All Packages  Class Hierarchy  This Package  Previous  Next  Index