com.rubecula.darwin.domain.world
Class Lek
java.lang.Object
com.rubecula.util.RandomIterable<Organism>
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
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Lek
public Lek(Colony colony,
org.apache.commons.math.random.RandomGenerator random)
- Parameters:
colony
- XXXrandom
-
Lek
public Lek(Colony colony,
org.apache.commons.math.random.RandomGenerator random,
double sampleFraction)
- Parameters:
colony
- XXXrandom
- 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 lekrandom
- sampleFraction
- colony
- a reference to the population (not used to determine
organisms).
getColony
public Colony getColony()
- Returns:
- the population
Copyright © 2010 Rubecula Software, LLC. All Rights Reserved.