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, wait
getSavedAnimals, newGenome, newMorph, newPhenotype
public void setTriangleMorph(int index, Morph morph)
setTriangleMorph
in interface MorphConfig
public net.richarddawkins.watchmaker.morph.selector.MorphSelector getSelector()
getSelector
in interface MorphConfig
public void setSelector(net.richarddawkins.watchmaker.morph.selector.MorphSelector selector)
setSelector
in interface MorphConfig
public Morph copyMorph(Morph morph)
copyMorph
in interface MorphConfig
public java.util.Collection<net.richarddawkins.watchmaker.album.Album> getAlbums()
getAlbums
in interface MorphConfig
public Morph[] getTriangleMorphs()
getTriangleMorphs
in interface MorphConfig
public Triangler getTriangler()
getTriangler
in interface MorphConfig
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener
in interface MorphConfig
public AllowedMutations getAllowedMutations()
getAllowedMutations
in interface MorphConfig
public void setAllowedMutations(AllowedMutations muts)
setAllowedMutations
in interface MorphConfig
public AppData getAppData()
MorphConfig
getAppData
in interface MorphConfig
public Embryology getEmbryology()
getEmbryology
in interface MorphConfig
public GenomeFactory getGenomeFactory()
getGenomeFactory
in interface MorphConfig
public Morph getLitter(Morph parentMorph, int litterSize)
MorphConfig
getLitter
in interface MorphConfig
parentMorph
- the parent morph to breed fromlitterSize
- how many offspring to returnpublic Mutagen getMutagen()
getMutagen
in interface MorphConfig
public int getStartingMorphBasicType()
getStartingMorphBasicType
in interface MorphConfig
public boolean isRecordingFossils()
isRecordingFossils
in interface MorphConfig
public void initMorph(Morph morph)
initMorph
in interface MorphConfig
public Morph newMorph(int type)
MorphConfig
newMorph
in interface MorphConfig
type
- An integer representing one of the built-in Genomes for this type
of Morph.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener
in interface MorphConfig
public Morph reproduce(Morph parentMorph)
reproduce
in interface MorphConfig
public void setAppData(AppData appData)
setAppData
in interface MorphConfig
public void setEmbryology(Embryology embryology)
setEmbryology
in interface MorphConfig
public void setGenomeFactory(GenomeFactory genomeFactory)
setGenomeFactory
in interface MorphConfig
public void setMutagen(Mutagen mutagen)
setMutagen
in interface MorphConfig
public void setRecordingFossils(boolean newValue)
setRecordingFossils
in interface MorphConfig
public void setStartingMorphBasicType(int startingMorphBasicType)
setStartingMorphBasicType
in interface MorphConfig