com.rubecula.darwin.domain.genetics
Interface Desirable

All Superinterfaces:
com.rubecula.jexpression.EvalExpression, com.rubecula.jexpression.EvalExpressionMutable
All Known Implementing Classes:
Function_Desirable

public interface Desirable
extends com.rubecula.jexpression.EvalExpressionMutable

This interface defines a method to get a male's desirability.

Author:
Robin Hillyard

Method Summary
 double getDesirability(boolean viability, double random, int age)
           
 
Methods inherited from interface com.rubecula.jexpression.EvalExpressionMutable
isMutable, setExpression, setExpression
 
Methods inherited from interface com.rubecula.jexpression.EvalExpression
getExpression, getExpressionTerms
 

Method Detail

getDesirability

double getDesirability(boolean viability,
                       double random,
                       int age)
Parameters:
viability - true if the male is viable
random - a random number between 0 and 1
age - the age of the male
Returns:
the desirability either hard-coded or based on the current customized formula


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