com.rubecula.darwin.domain.world
Class Lek

java.lang.Object
  extended by com.rubecula.util.RandomIterable<Organism>
      extended by com.rubecula.darwin.domain.world.Lek
All Implemented Interfaces:
java.lang.Iterable<Organism>

public class Lek
extends RandomIterable<Organism>

Lifespan: temporary Concrete class to model a collection of breeding males from which a female may choose a mate. In our case, the Lek is an abstract concept rather than a true biological lek, see http://en.wikipedia.org/wiki/Lek_%28mating_arena%29. TODO filter out females from the collection of organisms.

Author:
Robin Hillyard

Field Summary
 
Fields inherited from class com.rubecula.util.RandomIterable
_list, _size
 
Constructor Summary
protected Lek(java.util.Collection<Organism> organisms, org.apache.commons.math.random.RandomGenerator random, double sampleFraction, Colony colony)
           
  Lek(Colony colony, org.apache.commons.math.random.RandomGenerator random)
           
  Lek(Colony colony, org.apache.commons.math.random.RandomGenerator random, double sampleFraction)
           
 
Method Summary
 Colony getColony()
           
 
Methods inherited from class com.rubecula.util.RandomIterable
getRemainder, isSample, iterator, reset, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lek

public Lek(Colony colony,
           org.apache.commons.math.random.RandomGenerator random)
Parameters:
colony - XXX
random -

Lek

public Lek(Colony colony,
           org.apache.commons.math.random.RandomGenerator random,
           double sampleFraction)
Parameters:
colony - XXX
random -
sampleFraction -

Lek

protected Lek(java.util.Collection<Organism> organisms,
              org.apache.commons.math.random.RandomGenerator random,
              double sampleFraction,
              Colony colony)
Parameters:
organisms - the explicit set of organisms to include in the lek
random -
sampleFraction -
colony - a reference to the population (not used to determine organisms).
Method Detail

getColony

public Colony getColony()
Returns:
the population


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