|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Colony
This super-interface of Population addresses the more basic aspects
of an Evolvable, Visualizable and Countable group.
In particular, this interface knows nothing about Organisms.
TODO consider switching names between this and Population.
| Method Summary | |
|---|---|
boolean |
addOrganism(Organism organism)
|
void |
cleanupGeneration()
Cleanup (that's a euphemism) the organisms in this Colony. |
java.lang.String |
createIdentifier()
Method to yield an unique identifier within this colony. |
Environment |
getEnvironment()
Method to get the environment in which this colony thrives. |
java.util.Collection<Organism> |
getOrganisms()
|
Population |
getPopulation()
|
double |
getSaturation()
Method to determine the population saturation. |
double |
grantPardons(double fittestOriginal,
int pardonsPerColony)
|
void |
markDeadOrganisms(Viability viability)
|
void |
normalizeGenomes(Organism bestOrganism)
|
void |
populationChanged(java.lang.Object context)
|
void |
setIndex(int index)
Set the index of this population within its parent Taxon System. |
void |
setIsolated(boolean isolated)
|
void |
setNDaughters(int size)
Set the number of daughter colonies we expect this colony to have. |
void |
setPopulation(Population population)
|
boolean |
setupGeneration()
|
boolean |
spin(int n)
|
void |
thin(int thinFactor)
Thin (decimate) the organisms of this colony by a factor of thinFactor. |
| Methods inherited from interface com.rubecula.darwin.foundation.Visualizable |
|---|
getIndividuals, getRealm, getSink |
| Methods inherited from interface net.sf.tostring0.Identifiable |
|---|
getIdentifier |
| Methods inherited from interface com.rubecula.darwin.foundation.Countable |
|---|
getCount |
| Methods inherited from interface com.rubecula.darwin.domain.helper.Censusible |
|---|
censusMe, getCensusibleChildren |
| Methods inherited from interface com.rubecula.darwin.foundation.Theological |
|---|
cullMembers, seedMembers |
| Methods inherited from interface com.rubecula.darwin.domain.helper.Insular |
|---|
isIsolated |
| Method Detail |
|---|
boolean addOrganism(Organism organism)
organism -
void cleanupGeneration()
Generational.nextGeneration() method.
java.lang.String createIdentifier()
Environment getEnvironment()
java.util.Collection<Organism> getOrganisms()
Population getPopulation()
double getSaturation()
double grantPardons(double fittestOriginal,
int pardonsPerColony)
throws FitnessException
fittestOriginal - the fitness value of the fittest we know of so farpardonsPerColony -
FitnessException
void markDeadOrganisms(Viability viability)
throws FitnessException
viability - the viability which will determine whether an organism is
viable or not.
FitnessExceptionvoid normalizeGenomes(Organism bestOrganism)
bestOrganism - void populationChanged(java.lang.Object context)
context - something that characterizes what caused the population changevoid setIndex(int index)
List.indexOf(Object).
index - void setIsolated(boolean isolated)
isolated - the isolated to setvoid setNDaughters(int size)
size - void setPopulation(Population population)
population - the population to setboolean setupGeneration()
boolean spin(int n)
n - the range of integers from which to choose (i.e. the odds
against spin returning true).
void thin(int thinFactor)
throws FitnessException
thinFactor. Literal decimation would occur if the thinFactor
was 10.
thinFactor - the factor by which the population is to be reduced.
FitnessException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||