com.rubecula.darwin.core
Interface Expression

All Known Implementing Classes:
Expression_Abstract, Expression_Default, Expression_PepperedMoth, Expression_TS

public interface Expression

Defines the methods to be implemented by an expresser of genes, i.e. is used to generate the physical information (traits, phenotypes) from genetic information (genes, genotypes).

Version:
$Revision: 1.1 $
Author:
Robin Hillyard

Method Summary
 Trait express(Gene gene, Factory factory)
          Method to express genetic information in physical terms.
 Phenotype express(Genotype genotype, Factory factory)
          Method to express genetic information in physical terms.
 

Method Detail

express

Trait express(Gene gene,
              Factory factory)
Method to express genetic information in physical terms.

Parameters:
gene - The gene to be expressed.
factory - the implementer of Factory required in order to instantiate a new Trait.
Returns:
the expression of gene as a Trait.

express

Phenotype express(Genotype genotype,
                  Factory factory)
Method to express genetic information in physical terms.

Parameters:
genotype - The genotype to be expressed.
factory - the implementer of Factory required in order to instantiate a new Phenotype.
Returns:
the expression of genotype as a Phenotype.