com.rubecula.darwin.examples.pepperedmoth
Class MateChoice_PepperedMoth
java.lang.Object
com.rubecula.darwin.domain.world.MateChoice_
com.rubecula.darwin.domain.world.MateChoice_Evaluator
com.rubecula.darwin.examples.pepperedmoth.MateChoice_PepperedMoth
- All Implemented Interfaces:
- MateChoice, HasExpressions
public final class MateChoice_PepperedMoth
- extends MateChoice_Evaluator
Default implementation of MateChoice. In this default implementation, females
are not at all choosy - all males appear as bad as all others! Sound
familiar?
- Version:
- $Revision: 1.20 $
- Author:
- Robin Hillyard
Methods inherited from class com.rubecula.darwin.domain.world.MateChoice_ |
chooseMate, createPairBond, equals, findPairs, getAttraction, getAttractionEvaluator, getDesirabilityIndex, getLek, getRandom, getSampleFraction, hashCode, pairUp, setRandom, setSampleFraction |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
MateChoice_PepperedMoth
public MateChoice_PepperedMoth(org.apache.commons.math.random.RandomGenerator random)
- Public secondary constructor -- with no evaluator.
- Parameters:
random
- a random number generator
MateChoice_PepperedMoth
public MateChoice_PepperedMoth(org.apache.commons.math.random.RandomGenerator random,
com.rubecula.jexpression.Evaluator evaluatorDesirable,
com.rubecula.jexpression.Evaluator evaluatorChoosy)
- Public constructor.
- Parameters:
random
- a random number generatorevaluatorDesirable
- the expression evaluator to be used for the desirability
formula (or null)evaluatorChoosy
- the expression evaluator to be used for the
minimum-desirability formula (or null)
MateChoice_PepperedMoth
public MateChoice_PepperedMoth(org.apache.commons.math.random.RandomGenerator random,
Function_Desirable functionDesirable,
Function_Choosy functionChoosy)
- Public constructor with uniform attraction.
- Parameters:
random
- a random number generatorfunctionDesirable
- the expression evaluator to be used for the desirability
formula (or null)functionChoosy
- the expression evaluator to be used for the
minimum-desirability formula (or null)
MateChoice_PepperedMoth
public MateChoice_PepperedMoth(org.apache.commons.math.random.RandomGenerator random,
Function_Desirable functionDesirable,
Function_Choosy functionChoosy,
Attraction attraction)
- Public constructor.
- Parameters:
random
- a random number generatorfunctionDesirable
- the expression evaluator to be used for the desirability
formula (or null)functionChoosy
- the expression evaluator to be used for the
minimum-desirability formula (or null)attraction
- the sexual attraction.
Copyright © 2010 Rubecula Software, LLC. All Rights Reserved.