com.rubecula.darwin.core
Interface Mortality

All Known Implementing Classes:
Mortality_Abstract, Mortality_Default, Mortality_TS

public interface Mortality

Defines how mortality is calculated for individual objects (organisms) in Darwinian Systems.

Version:
$Revision: 1.1 $
Author:
Robin Hillyard

Method Summary
 double calculateMortality(int age, double fitness, double saturation)
          Method to calculate the mortality for an organism of a given age and fitness in an environment.
 

Method Detail

calculateMortality

double calculateMortality(int age,
                          double fitness,
                          double saturation)
Method to calculate the mortality for an organism of a given age and fitness in an environment.

Parameters:
age - the age of the organism in generations.
fitness - the fitness of the organism for an environment.
saturation - a measure of the current population saturation (1 corresponds to the ideal population supportable by the environment.
Returns:
the probability of death before the next generation (between 0 and 1).