Phenotype (JEvolution)
Date: 2013-03-21

evSOLve.JEvolution

## Interface Phenotype

- All Superinterfaces:
    java.lang.Cloneable

      public interface Phenotype
      extends java.lang.Cloneable

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `calcFitness()` The fitness of the Phenotype is evaluated.
    `java.lang.Object` | `clone()` A proper clone of the Phenotype.
    `void` | `doOntogeny(java.util.List<Chromosome> 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.
    `void` | `toXml(Element element)` Saves the phenotype to XML.

- - ### Method Detail

    - #### clone

          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.

    - #### doOntogeny

          void doOntogeny(java.util.List<Chromosome> genotype)

      The genotype-phenotype mapper converting the genetic code to a phenotypic structure.

    - #### calcFitness

          void calcFitness()

      The fitness of the Phenotype is evaluated.

    - #### getFitness

          double getFitness()

      Gives the fitness of this Phenotype.

    - #### toString

          java.lang.String toString()

      A String representation of the Phenotype.
      Overrides:
        `toString` in class `java.lang.Object`

    - #### toXml

          void toXml(Element element)

      Saves the phenotype to XML.