com.rubecula.darwin.core
Interface MateChoice

All Known Implementing Classes:
MateChoice_Abstract, MateChoice_Default, MateChoice_PepperedMoth

public interface MateChoice

Defines methods to determine how mates are chosen. In the current implementation, male mates are always chosen by females, never the other way around.

Version:
$Revision: 1.2 $
Author:
Robin Hillyard

Method Summary
 double getDesirabilityIndex(Organism female, Organism male)
          Method to determine the desirability of a given male in the eyes, etc.
 double getMinimumDesirability()
           
 

Method Detail

getDesirabilityIndex

double getDesirabilityIndex(Organism female,
                            Organism male)
Method to determine the desirability of a given male in the eyes, etc. of a given female.

Parameters:
female - the choosy female.
male - the poor schmuck male.
Returns:
the desirability from 0 (not desirable) through infinity (totally desirable).

getMinimumDesirability

double getMinimumDesirability()
Returns:
a value for the desirability threshold for choosing a mate (same scale as the desirability index, see getDesirabilityIndex(Organism, Organism)