Method Summary |
|
void | cleanup() Invoked when this Chromosome is no longer needed and should perform
any necessary cleanup. |
int | getAge() 0: Chromosome newly created in this generation. |
Object | getApplicationData() Retrieves the application-specific data that is attached to this
Chromosome. |
Configuration | getConfiguration() |
double | getFitnessValue() Retrieves the fitness value of this Chromosome, as determined by the
active fitness function. |
double | getFitnessValueDirectly() |
Gene | getGene(int a_desiredLocus) Returns the Gene at the given index (locus) within the Chromosome. |
Gene[] | getGenes() Retrieves the set of genes that make up this Chromosome. |
void | increaseAge() Increases the number of evolutionary rounds of chromosome in which it has
not been changed by one. |
void | increaseOperatedOn() Increase information of number of genetic operations performed on
chromosome in current evolution round. |
boolean | isSelectedForNextGeneration() Retrieves whether this Chromosome has been selected by the natural
selector to continue to the next generation. |
int | operatedOn() |
void | resetAge() Reset age of chromosome because it has been changed. |
void | resetOperatedOn() Resets the information of how many genetic operators have been performed
on the chromosome in the current round of evolution. |
void | setApplicationData(Object a_newData) This sets the application-specific data that is attached to this
Chromosome. |
void | setConstraintChecker(IGeneConstraintChecker a_constraintChecker) Sets the constraint checker to be used for this gene whenever method
setAllele(Object) is called. |
void | setFitnessValue(double a_newFitnessValue) Sets the fitness value of this Chromosome. |
void | setFitnessValueDirectly(double a_newFitnessValue) Sets the fitness value of this Chromosome directly without any
constraint checks, conversions or checks. |
void | setGenes(Gene[] a_genes) Sets the genes for the chromosome. |
void | setIsSelectedForNextGeneration(boolean a_isSelected) Sets whether this Chromosome has been selected by the natural selector
to continue to the next generation or manually (e.g. |
int | size() Returns the size of this Chromosome (the number of genes it contains). |