com.rubecula.darwin.core
Class Expression_Abstract

java.lang.Object
  extended by com.rubecula.darwin.core.Expression_Abstract
All Implemented Interfaces:
Expression
Direct Known Subclasses:
Expression_Default, Expression_PepperedMoth, Expression_TS

public abstract class Expression_Abstract
extends Object
implements Expression

Abstract class defining base implementation for Expression (of Genes). In particular, the express(Genotype) method is implemented. Extenders must implement the express(Gene) method.

Version:
$Revision: 1.3 $
Author:
Robin Hillyard

Field Summary
protected static org.apache.commons.logging.Log log
          The logger for this class.
 
Constructor Summary
Expression_Abstract()
           
 
Method Summary
 Phenotype express(Genotype genotype, Factory factory)
          Apply Genotype_Abstract.autoExpress(Expression, Factory) to the genotype provided and return the result without further ado.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.rubecula.darwin.core.Expression
express
 

Field Detail

log

protected static final org.apache.commons.logging.Log log
The logger for this class.

Constructor Detail

Expression_Abstract

public Expression_Abstract()
Method Detail

express

public Phenotype express(Genotype genotype,
                         Factory factory)
Apply Genotype_Abstract.autoExpress(Expression, Factory) to the genotype provided and return the result without further ado.

Specified by:
express in interface Expression
Parameters:
genotype - The genotype to be expressed.
factory - the implementer of Factory.
Returns:
the expression of genotype as a Phenotype.
See Also:
Expression.express(com.rubecula.darwin.core.Genotype, Factory)