org.aisb.bio.things.evolution
Class AsexualPopulation
java.lang.Object
org.aisb.bio.things.evolution.AsexualPopulation
- public class AsexualPopulation
- extends java.lang.Object
This represents an entire population of AsexualOrganism
s.
We want to be able to fetch organisms both by when they were born and when they'll reproduce.
- Author:
- Doug DeJulio
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AsexualPopulation
public AsexualPopulation()
addOrganism
public void addOrganism(float birthday,
float breedsOn,
AsexualOrganism organism)
getBirthdaysBetween
public float[] getBirthdaysBetween(float startTime,
float endTime)
getBreedTimesBetween
public float[] getBreedTimesBetween(float startTime,
float endTime)
getNextBreedingTime
public float getNextBreedingTime(float now)
getOrganismsWithBirthday
public AsexualOrganism[] getOrganismsWithBirthday(float birthday)
getOrganismsThatBreedOn
public AsexualOrganism[] getOrganismsThatBreedOn(float breedingDay)