|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Population
Defines the properties (methods) which characterize a population in an Evolutionary
Computation.
Briefly, a population consists of a collection of instances of Organism,
and which is subject to an Environment.
A population forms part of a Darwinian system, which in turn
provides definitions for the genetic and physical aspects of the organisms.
| Method Summary | |
|---|---|
boolean |
add(Organism organism)
|
void |
addListener(PopulationListener listener)
Add a listener to population change events. |
String |
createIdentifier()
Method to yield an unique identifier within this population. |
Environment |
getEnvironment()
Method to get the environment in which this population thrives. |
Fitness |
getFitness()
Method to get an application-supplied fitness function for this population. |
Genome |
getGenome()
Method to get the genome for this population. |
Phenome |
getPhenome()
Method to get the phenome for this population. |
double |
getSaturation()
Method to determine the population saturation. |
Darwinian |
getSystem()
Method to get the Darwinian system to which this population belongs. |
boolean |
isIsolated()
|
Iterator<Organism> |
iterator()
|
Mating |
pairUp(Random random,
MateChoice chooser,
Organism_Sexual female)
Create a pair bond. |
void |
seedGeneration(int organisms)
Method to seed a population which a certain number of organisms. |
void |
setIsolated(boolean isolated)
|
int |
size()
|
| Methods inherited from interface com.rubecula.darwin.core.Generatable |
|---|
getGeneration, midGenerationProcessing, nextGeneration, postGenerationCleanup, preGenerationPreparation |
| Methods inherited from interface com.rubecula.util.Auditable |
|---|
audit, audit, audit |
| Methods inherited from interface com.rubecula.darwin.core.CensusibleCollection |
|---|
enumerateCollection |
| Method Detail |
|---|
boolean add(Organism organism)
void addListener(PopulationListener listener)
listener - an implementer of PopulationListener.String createIdentifier()
Environment getEnvironment()
Fitness getFitness()
getPhenome().getFitnessFunction()
Genome getGenome()
Phenome getPhenome()
Darwinian.getPhenome() for this population's system.
TODO consider removing this convenience method.double getSaturation()
Darwinian getSystem()
Darwinian system.boolean isIsolated()
Iterator<Organism> iterator()
Mating pairUp(Random random,
MateChoice chooser,
Organism_Sexual female)
random - a random number sourcechooser - an implementer of MateChoicefemale - an Organism_Sexual which will choose a male
Mating with female as the female part of the pair.void seedGeneration(int organisms)
organisms - the number of organisms to be seeded.void setIsolated(boolean isolated)
isolated - the isolated to setint size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||