com.rubecula.darwin.core
Interface Fit

All Known Subinterfaces:
Organism, Phenotype
All Known Implementing Classes:
Organism_Abstract, Organism_Asexual, Organism_Sexual, Phenotype_Abstract, Phenotype_Default, Phenotype_TS

public interface Fit

Defines the aspect of an object which measures its fitness with respect to an environment.

Version:
$Revision: 1.1 $
Author:
Robin Hillyard

Method Summary
 double evaluateFitness(Phenome phenome, Environment environment)
          This method evaluates the fitness of this in the context of the environment and with reference to the phenome.
 

Method Detail

evaluateFitness

double evaluateFitness(Phenome phenome,
                       Environment environment)
This method evaluates the fitness of this in the context of the environment and with reference to the phenome.

Parameters:
phenome - the phenome to which this object conforms.
environment - the environment in which this object is found.
Returns:
a value between 0 and 1 representing the fitness of this object in the environment, with reference to the phenome.