com.rubecula.darwin.examples.pepperedmoth
Class MateChoice_PepperedMoth

java.lang.Object
  extended by com.rubecula.darwin.domain.world.MateChoice_
      extended by com.rubecula.darwin.domain.world.MateChoice_Evaluator
          extended by 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

Field Summary
 
Fields inherited from class com.rubecula.darwin.domain.world.MateChoice_Evaluator
_desirabilityEvaluator, _desirabilityMinEvaluator
 
Fields inherited from class com.rubecula.darwin.domain.world.MateChoice_
_attraction, LOG
 
Constructor Summary
MateChoice_PepperedMoth(org.apache.commons.math.random.RandomGenerator random)
          Public secondary constructor -- with no evaluator.
MateChoice_PepperedMoth(org.apache.commons.math.random.RandomGenerator random, com.rubecula.jexpression.Evaluator evaluatorDesirable, com.rubecula.jexpression.Evaluator evaluatorChoosy)
          Public constructor.
MateChoice_PepperedMoth(org.apache.commons.math.random.RandomGenerator random, Function_Desirable functionDesirable, Function_Choosy functionChoosy)
          Public constructor with uniform attraction.
MateChoice_PepperedMoth(org.apache.commons.math.random.RandomGenerator random, Function_Desirable functionDesirable, Function_Choosy functionChoosy, Attraction attraction)
          Public constructor.
 
Method Summary
 
Methods inherited from class com.rubecula.darwin.domain.world.MateChoice_Evaluator
enableMateChoiceChanges, getDesirability, getDesirabilityEvaluator, getDesirabilityMinEvaluator, getExpressions, getMinimumDesirability, setEvaluator, setExpression, setSeed
 
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
 

Constructor Detail

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 generator
evaluatorDesirable - 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 generator
functionDesirable - 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 generator
functionDesirable - 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.