|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Taxon
Defines the methods supported by a unit of evolutionary computation (Taxon).
Try not to get too hung up on the name "Taxon": a rose by any other name...
Indeed, "unit", "system", "species", "clade", "phylogenetic entity", etc.
would all be reasonable names for this type family. Essentially a Taxon is an
evolvable object which "owns" a collection of Organism
s which all
share the same Genomic
and Phenome
, in other words what we
commonly refer to as a species. If you want to model the interaction
of two such species, for example predator and prey, then you need to have
more than one taxon in your Evolution
. The chief properties (fixed
unless otherwise specified) of a taxon are:
Realm
(i.e. the "model") to which the taxon
belongs;Population
instances but TODO populations
should belong to the realm, not the taxon;Fecundity
interface,Genomic
interface, which defines the
genomic organization for all organisms of the taxon;Phenome
interface,Mortality
interface, which defines how
likely organisms of the taxon are to die;MateChoice
interface, which defines how
organisms of the taxon choose a mate;VisualizableListener
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 organisms.
Method Summary | |
---|---|
int |
addPopulation(Population population)
Mutating method to add a population to the system. |
void |
addVisualizableListener(VisualizableListener listener)
Mutating method to add, for each of this system's populations, a listener, i.e. |
void |
doCensus()
Method to enumerate this population for census purposes. |
Census |
getCensusTaker()
|
MateChoice |
getChooser()
|
Fecundity |
getFecundity()
|
Genomic |
getGenomic()
|
Mortality |
getMortality()
|
Phenome |
getPhenome()
Method to get the phenome for this system, i.e. |
java.lang.Object |
getProperty(java.lang.Object key)
|
Realm |
getRealm()
|
int |
getSeedPopulation()
|
java.util.Collection<VisualizableListener> |
getVisualizableListeners()
Getter/setter typically called by reflection. |
boolean |
isLastGeneration()
|
void |
setPopulations(java.util.Collection<Population> populations)
|
java.lang.Object |
setProperty(java.lang.String key,
java.lang.Object value)
Method to set an arbitrary property for this system. |
void |
setVisualizableListeners(java.util.Collection<VisualizableListener> listeners)
Getter/setter typically called by reflection. |
Methods inherited from interface com.rubecula.darwin.foundation.Evolvable |
---|
getGeneration, getResult |
Methods inherited from interface net.sf.tostring0.Identifiable |
---|
getIdentifier |
Methods inherited from interface com.rubecula.darwin.foundation.Generational |
---|
nextGeneration |
Methods inherited from interface com.rubecula.darwin.foundation.Theological |
---|
cullMembers, seedMembers |
Methods inherited from interface com.rubecula.darwin.foundation.Terminal |
---|
isFinished |
Methods inherited from interface com.rubecula.darwin.domain.helper.Registry |
---|
registerBirths, registerDeaths, registerMarriages |
Methods inherited from interface com.rubecula.darwin.domain.helper.HasPhenotypeCache |
---|
getPhenotypeCache |
Methods inherited from interface com.rubecula.darwin.domain.helper.Censusible |
---|
censusMe, getCensusibleChildren |
Method Detail |
---|
int addPopulation(Population population)
population
- an implementer of Population
.
void addVisualizableListener(VisualizableListener listener)
VisualizableListener
.
listener
- the listener of population change events.void doCensus() throws java.io.IOException
java.io.IOException
Census getCensusTaker()
Census
.MateChoice getChooser()
MateChoice
.Fecundity getFecundity()
Fecundity
.Genomic getGenomic()
Taxon
System.Mortality getMortality()
Mortality
.Phenome getPhenome()
Phenome
.
java.lang.Object getProperty(java.lang.Object key)
key
-
Realm getRealm()
int getSeedPopulation()
java.util.Collection<VisualizableListener> getVisualizableListeners()
boolean isLastGeneration()
void setPopulations(java.util.Collection<Population> populations)
populations
- Getter/setter typically called by reflection.java.lang.Object setProperty(java.lang.String key, java.lang.Object value)
key
- value
-
void setVisualizableListeners(java.util.Collection<VisualizableListener> listeners)
listeners
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |