com.rubecula.darwin.core
Interface Phenome

All Superinterfaces:
TraitMap
All Known Implementing Classes:
Phenome_Abstract, Phenome_Default, Phenome_Numerical

public interface Phenome
extends TraitMap

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

Version:
$Revision: 1.2 $
Author:
Robin Hillyard

Method Summary
 Object getData()
          Method to return the current state of the application-specific data previously set in setData(Object).
 Fitness getFitnessFunction()
          Method to get an application-supplied fitness function for this phenome.
 void setData(Object data)
          Method which can be used to set some application-specific data prior to a expressing a genotype as a phenotype.
 
Methods inherited from interface com.rubecula.darwin.core.TraitMap
add, getTrait, size
 

Method Detail

getFitnessFunction

Fitness getFitnessFunction()
Method to get an application-supplied fitness function for this phenome.

Returns:
an implementation of Fitness.

setData

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

Parameters:
data - application-specific data.

getData

Object getData()
Method to return the current state of the application-specific data previously set in setData(Object).

Returns:
application-specific data.