com.rubecula.darwin.domain.environment
Class Expresser_Function

java.lang.Object
  extended by com.rubecula.darwin.domain.environment.Expresser_
      extended by com.rubecula.darwin.domain.environment.Expresser_Function
All Implemented Interfaces:
Expresser

public final class Expresser_Function
extends Expresser_

This expresser is suitable for haploid genomes. There is a functional correspondence between allele values and trait values.

Author:
Robin Hillyard

Field Summary
 
Fields inherited from class com.rubecula.darwin.domain.environment.Expresser_
_character, LOG
 
Constructor Summary
Expresser_Function(Pharacter character, ExpresserFunction function)
          TEST
 
Method Summary
 Trait express(Gene... genes)
          TEST Express a gene by getting the allele's value and generating a new trait with value derived from the allele's value.
 
Methods inherited from class com.rubecula.darwin.domain.environment.Expresser_
createTrait, createTrait, createTrait, createTrait, equals, express, getCharacter, getComplement, hashCode, isComplementary
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Expresser_Function

public Expresser_Function(Pharacter character,
                          ExpresserFunction function)
TEST

Parameters:
character -
function - the function which takes an allele and generates a trait value.
Method Detail

express

public Trait express(Gene... genes)
TEST Express a gene by getting the allele's value and generating a new trait with value derived from the allele's value.

Parameters:
genes - a variable number of Gene objects.
Returns:
a trait which is the expression of the given genes
See Also:
Expresser.express(Colony, com.rubecula.darwin.domain.helper.Gene[])


Copyright © 2010 Rubecula Software, LLC. All Rights Reserved.