com.rubecula.darwin.domain.helper
Interface Phenome

All Known Implementing Classes:
Phenome_, Phenome_Gouldian, Phenome_Numerical

public interface Phenome

Defines the methods for implementations of the Phenome interface. A Phenome is the physical (phenotypic) counterpart to the Genomic and forms part of a Taxon. A Phenome is essentially a list of Traits with their values.

TODO consider renaming this family of types as Phenomics ...

Version:
$Revision: 1.14 $
Author:
Robin Hillyard

Method Summary
 int addCharacter(Pharacter character)
          Add a character to this phenome.
 Pharacter getCharacter(java.lang.String id)
           
 java.util.Collection<java.lang.String> getCharacterKeys()
           
 java.util.Collection<Pharacter> getCharacters()
           
 java.lang.Object getData()
          Method to return the current state of the application-specific data previously set in setData(Object).
 FitnessEngine getFitnessEngine()
          Method to get the application-supplied fitness engine for this phenome.
 void setData(java.lang.Object data)
          Method which can be used to set some application-specific data prior to a expressing a genome as a phenotype.
 int size()
           
 

Method Detail

addCharacter

int addCharacter(Pharacter character)
Add a character to this phenome.

Parameters:
character -
Returns:
the index of the new character.

getCharacter

Pharacter getCharacter(java.lang.String id)
Parameters:
id -
Returns:
the character with given id, else null

getCharacterKeys

java.util.Collection<java.lang.String> getCharacterKeys()
Returns:
the set of character keys for this Phenome

getCharacters

java.util.Collection<Pharacter> getCharacters()
Returns:
the characters

getData

java.lang.Object getData()
Method to return the current state of the application-specific data previously set in setData(Object). TODO check that we really want to use this mechanism for storing fitness.

Returns:
application-specific data.

getFitnessEngine

FitnessEngine getFitnessEngine()
Method to get the application-supplied fitness engine for this phenome.

Returns:
an implementation of FitnessEngine.

setData

void setData(java.lang.Object data)
Method which can be used to set some application-specific data prior to a expressing a genome as a phenotype. To retrieve the current value of this data at some later time, see getData().

Parameters:
data - application-specific data.

size

int size()
Returns:
the number of characters for this phenome.


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