|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Darwinian
Defines the methods supported by an evolutionary computation (Darwinian) system. The properties of such a system are:
Population instances, each governed by
the attributes of this system (but typically existing in diverse environments);Fecundity interface,Genome interface,
which defines the genome for all system-governed organisms;Phenome interface,Mortality interface,
which defines how likely system-governed organisms are to die;MateChoice interface,
which defines how system-governed organisms choose a mate;PopulationListener interface,
each of which will be notified via its callback method when the population changes
(typically at the end of each generation)Census interface,
which defines how census operations are performed on the populations.
| Method Summary | |
|---|---|
boolean |
add(Population population)
Mutating method to add a population to the system. |
void |
census(PrintWriter writer)
Method to enumerate this population for census purposes. |
Census |
getCensusTaker()
|
MateChoice |
getChooser()
|
Factory |
getFactory()
|
Fecundity |
getFecundity()
|
Genome |
getGenome()
|
Mortality |
getMortality()
|
Phenome |
getPhenome()
Method to get the phenome for this system, i.e. |
Population |
getPopulation(int index)
|
void |
seedGeneration(int organisms)
Method to seed the system by seeding a certain number of new organisms in each of the system's populations. |
void |
setChooser(MateChoice chooser)
MUTATING method to explicitly set the implementer of MateChoice. |
void |
setFecundity(Fecundity fecundity)
MUTATING method to explicitly set the implementer of Fecundity. |
void |
setMortality(Mortality mortality)
MUTATING method to explicitly set the implementer of Mortality. |
void |
setupListeners(EnvironmentListener listener)
Set up environment listeners. |
void |
setupListeners(PopulationListener listener)
Mutating method to add, for each of this system's populations, a listener, i.e. |
int |
size()
|
| Methods inherited from interface com.rubecula.darwin.core.Generatable |
|---|
getGeneration, midGenerationProcessing, nextGeneration, postGenerationCleanup, preGenerationPreparation |
| Methods inherited from interface com.rubecula.util.Identifiable |
|---|
getIdentifier |
| Method Detail |
|---|
boolean add(Population population)
population - an implementer of Population.
void census(PrintWriter writer)
writer - the print writer to which census results will be sent.CensusUtils.DefaultEnumeration(java.util.Iterator, com.rubecula.darwin.core.Census, java.io.PrintWriter)Census getCensusTaker()
Census.MateChoice getChooser()
MateChoice.Factory getFactory()
Factory for this system.Fecundity getFecundity()
Fecundity.Genome getGenome()
Darwinian System.Mortality getMortality()
Mortality.Phenome getPhenome()
Phenome.
Population getPopulation(int index)
void seedGeneration(int organisms)
organisms - the number of new organisms to create in each population.void setChooser(MateChoice chooser)
chooser - an application-specific implementation of MateChoice.void setFecundity(Fecundity fecundity)
fecundity - an application-specific implementation of Fecundity.void setMortality(Mortality mortality)
mortality - an application-specific implementation of Mortality.void setupListeners(EnvironmentListener listener)
listener - void setupListeners(PopulationListener listener)
PopulationListener.
listener - the listener of population change events.int size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||