public abstract class SimpleMorphConfig extends java.lang.Object implements MorphConfig
| Constructor and Description |
|---|
SimpleMorphConfig() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener) |
Morph |
copyMorph(Morph morph) |
java.util.Collection<net.richarddawkins.watchmaker.album.Album> |
getAlbums() |
AllowedMutations |
getAllowedMutations() |
AppData |
getAppData()
Returns the AppData instance representing a
running Watchmaker application.
|
Embryology |
getEmbryology() |
GenomeFactory |
getGenomeFactory() |
Morph |
getLitter(Morph parentMorph,
int litterSize)
Generates a new litter and returns the eldest sibling among them.
|
Mutagen |
getMutagen() |
net.richarddawkins.watchmaker.morph.selector.MorphSelector |
getSelector() |
int |
getStartingMorphBasicType() |
Morph[] |
getTriangleMorphs() |
Triangler |
getTriangler() |
void |
initMorph(Morph morph) |
boolean |
isRecordingFossils() |
Morph |
newMorph(int type)
Create a new Genome initialized to a specified one of a number of
built-in Genomes.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener) |
Morph |
reproduce(Morph parentMorph) |
void |
setAllowedMutations(AllowedMutations muts) |
void |
setAppData(AppData appData) |
void |
setEmbryology(Embryology embryology) |
void |
setGenomeFactory(GenomeFactory genomeFactory) |
void |
setMutagen(Mutagen mutagen) |
void |
setRecordingFossils(boolean newValue) |
void |
setSelector(net.richarddawkins.watchmaker.morph.selector.MorphSelector selector) |
void |
setStartingMorphBasicType(int startingMorphBasicType) |
void |
setTriangleMorph(int index,
Morph morph) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSavedAnimals, newGenome, newMorph, newPhenotypepublic void setTriangleMorph(int index,
Morph morph)
setTriangleMorph in interface MorphConfigpublic net.richarddawkins.watchmaker.morph.selector.MorphSelector getSelector()
getSelector in interface MorphConfigpublic void setSelector(net.richarddawkins.watchmaker.morph.selector.MorphSelector selector)
setSelector in interface MorphConfigpublic Morph copyMorph(Morph morph)
copyMorph in interface MorphConfigpublic java.util.Collection<net.richarddawkins.watchmaker.album.Album> getAlbums()
getAlbums in interface MorphConfigpublic Morph[] getTriangleMorphs()
getTriangleMorphs in interface MorphConfigpublic Triangler getTriangler()
getTriangler in interface MorphConfigpublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener in interface MorphConfigpublic AllowedMutations getAllowedMutations()
getAllowedMutations in interface MorphConfigpublic void setAllowedMutations(AllowedMutations muts)
setAllowedMutations in interface MorphConfigpublic AppData getAppData()
MorphConfiggetAppData in interface MorphConfigpublic Embryology getEmbryology()
getEmbryology in interface MorphConfigpublic GenomeFactory getGenomeFactory()
getGenomeFactory in interface MorphConfigpublic Morph getLitter(Morph parentMorph, int litterSize)
MorphConfiggetLitter in interface MorphConfigparentMorph - the parent morph to breed fromlitterSize - how many offspring to returnpublic Mutagen getMutagen()
getMutagen in interface MorphConfigpublic int getStartingMorphBasicType()
getStartingMorphBasicType in interface MorphConfigpublic boolean isRecordingFossils()
isRecordingFossils in interface MorphConfigpublic void initMorph(Morph morph)
initMorph in interface MorphConfigpublic Morph newMorph(int type)
MorphConfignewMorph in interface MorphConfigtype - An integer representing one of the built-in Genomes for this type
of Morph.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener in interface MorphConfigpublic Morph reproduce(Morph parentMorph)
reproduce in interface MorphConfigpublic void setAppData(AppData appData)
setAppData in interface MorphConfigpublic void setEmbryology(Embryology embryology)
setEmbryology in interface MorphConfigpublic void setGenomeFactory(GenomeFactory genomeFactory)
setGenomeFactory in interface MorphConfigpublic void setMutagen(Mutagen mutagen)
setMutagen in interface MorphConfigpublic void setRecordingFossils(boolean newValue)
setRecordingFossils in interface MorphConfigpublic void setStartingMorphBasicType(int startingMorphBasicType)
setStartingMorphBasicType in interface MorphConfig