com.rubecula.darwin.domain.helper
Interface Mortality

All Known Implementing Classes:
Mortality_, Mortality_Reaper, Mortality_TS

public interface Mortality

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

Version:
$Revision: 1.4 $
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.
 boolean isMarked(double mortality)
           
 

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). TODO consider inlining this into isMarked (ie. pass in age, fitness, saturation, and return boolean)

isMarked

boolean isMarked(double mortality)
Parameters:
mortality - the probability that an organism will die before the next generation (a value between 0 and 1).
Returns:
true if that organism is actually marked for death (i.e. if the mortality value exceeds the current threshold)


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