|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.tostring0.AToString com.rubecula.darwin.domain.world.Organism_ com.rubecula.darwin.domain.world.Organism_Sexual
public class Organism_Sexual
This concrete class represents an individual organism within a Taxon . It contains a Genome from which may be derived a Phenotype in the context of a Genomic.
Adds the following property toOrganism_
:
isFemale()
Renamed 2007/02/07 from Organism_Default to Organism_Sexual
Field Summary |
---|
Fields inherited from class com.rubecula.darwin.domain.world.Organism_ |
---|
_identifier, _nuclear, LOG |
Fields inherited from interface net.sf.tostring0.IToString |
---|
ANGBR_OPEN, ANGBRA_CLSE, BRA_CLSE, BRA_OPEN, BRCE_OPEN, BRCS_CLSE, COLON, LIST_SEPARATOR, MAX_ELEMENTS_DEFAULT, S_MT, S_PERCENT, SEPARATOR, SPACE |
Method Summary | |
---|---|
Mate |
createMate(MateChoice chooser,
Organism female)
Create a Mate object based on this Organism [provided
that this is male] and the given female. |
Mating |
createPairBond(MateChoice chooser,
Lek lek,
Lek alternativeLek)
If this object is a female and viable, create a pair bond from either population or alternativePopulation. |
java.util.Collection<Organism> |
getAsexualProgeny(int howMany)
This implementation of the method yields no progeny because we normally expect sexual organisms to reproduce only sexually. |
boolean |
isFemale()
Method to get the sex of this organism. |
static Organism |
seed(Colony colony)
Class method to create a new Organism_Sexual without parents (for seeding a population). |
Methods inherited from class com.rubecula.darwin.domain.world.Organism_ |
---|
age, censusMe, clone, compareTo, equals, getAge, getCensusibleChildren, getColony, getFitness, getGenome, getIdentifier, getMortality, getNuclear, getPhenotype, getValue, getVisualizable, hashCode, isMortal, isNew, isViable, isVisible, normalizeGenome, onEnvironmentChange, setColony, setViability, setViable |
Methods inherited from class net.sf.tostring0.AToString |
---|
toString, toString, toStringBrief, toStringId |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sf.tostring0.IToString |
---|
toString, toStringBrief, toStringId |
Method Detail |
---|
public static Organism seed(Colony colony)
colony
- the population into which the new instance will be placed and
from which the genomic is taken.
public Mate createMate(MateChoice chooser, Organism female)
Mate
object based on this Organism
[provided
that this is male] and the given female. If this is female, we return
null.
createMate
in interface Organism
chooser
- female
-
Organism.createMate(com.rubecula.darwin.domain.helper.MateChoice,
com.rubecula.darwin.domain.helper.Organism)
public Mating createPairBond(MateChoice chooser, Lek lek, Lek alternativeLek)
createPairBond
in interface Organism
chooser
- alternativeLek
- lek
- the breeding males from which we will choose a mate
Organism.createPairBond(com.rubecula.darwin.domain.helper.MateChoice,
Lek, Lek)
public java.util.Collection<Organism> getAsexualProgeny(int howMany)
getAsexualProgeny
in interface Organism
howMany
- ignored
public boolean isFemale()
Sexual
isFemale
in interface Sexual
Sexual.isFemale()
applied to the result of
invoking Organism_.getNuclear()
.Sexual.isFemale()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |