evSOLve.JEvolution
Interface Phenotype

All Superinterfaces:
java.lang.Cloneable

public interface Phenotype
extends java.lang.Cloneable

The Phenotype interface for the user/problem dependent code.

Version:
0.4
Author:
Helmut A. Mayer

Method Summary
 void calcFitness()
          The fitness of the Phenotype is evaluated.
 java.lang.Object clone()
          A proper clone of the Phenotype.
 void doOntogeny(java.util.Vector genotype)
          The genotype-phenotype mapper converting the genetic code to a phenotypic structure.
 double getFitness()
          Gives the fitness of this Phenotype.
 java.lang.String toString()
          A String representation of the Phenotype.
 

Method Detail

clone

public java.lang.Object clone()
A proper clone of the Phenotype. As each Individual has its own Phenotype, it is very important that all specific data of the Phenotype are cloned properly (deep), otherwise the solutions returned by JEvolution will have incorrect values.
Overrides:
clone in class java.lang.Object

doOntogeny

public void doOntogeny(java.util.Vector genotype)
The genotype-phenotype mapper converting the genetic code to a phenotypic structure.

calcFitness

public void calcFitness()
The fitness of the Phenotype is evaluated.

getFitness

public double getFitness()
Gives the fitness of this Phenotype.

toString

public java.lang.String toString()
A String representation of the Phenotype.
Overrides:
toString in class java.lang.Object