|
||||||||||
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.genetics.Genomic_ com.rubecula.darwin.domain.genetics.Genomic_Diploid com.rubecula.darwin.domain.world.Genomic_Sexual
public final class Genomic_Sexual
Lifespan: permanent.
Concrete implementation of Genomic
representing the possible genetic
information contained in a Taxon. A Genomic_Sexual extends Genomic_ comes
with exactly one default chromosome which is sex-linked and no
non-sex-linked chromosomes.
Field Summary |
---|
Fields inherited from class com.rubecula.darwin.domain.genetics.Genomic_ |
---|
_chromosomes, expresserCommon, expressers, LOG |
Fields inherited from interface com.rubecula.darwin.domain.helper.Ploidy |
---|
DIPLOID, HAPLOID |
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 |
Constructor Summary | |
---|---|
Genomic_Sexual(java.lang.String identifier,
Meiosis meiosis,
Mutator mutator,
org.apache.commons.math.random.RandomGenerator random)
Constructor for a new Genomic_Sexual instance using the given meiosis implementation and the given mutator implementation. |
|
Genomic_Sexual(java.lang.String identifier,
Meiosis meiosis,
org.apache.commons.math.random.RandomGenerator random)
Constructor for a new Genomic_Sexual instance using the given meiosis implementation. |
Method Summary | |
---|---|
protected void |
clearChromosomes()
Retain only the sex chromosome |
Chromosome |
getChromosome(int index)
Use this method to return a non-sex chromosome from this Genomic_Sexual object. |
Chromosome_Sex |
getChromosomeSex()
|
Locus |
getLocusSex()
XXX consider reducing scope for this. |
void |
setExpressers(java.util.Map<Locus,Expresser> expressers)
Reset the expresser map, but include the sex chromosome expresser. |
Methods inherited from class com.rubecula.darwin.domain.genetics.Genomic_ |
---|
addChromosome, addChromosome, createGamete, equals, express, express, getAlphabet, getChromosomes, getCount, getExpresser, getExpressers, getIdentifier, getLocus, getLocusCount, getMeiosis, getMutator, getPloidy, hashCode, mutate, normalize, putExpresser, setChromosomes, setExpresser, simplify |
Methods inherited from class net.sf.tostring0.AToString |
---|
toString, toString, toStringBrief, toStringId |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Genomic_Sexual(java.lang.String identifier, Meiosis meiosis, Mutator mutator, org.apache.commons.math.random.RandomGenerator random)
identifier
- meiosis
- mutator
- random
- an implementer of RandomGenerator
.public Genomic_Sexual(java.lang.String identifier, Meiosis meiosis, org.apache.commons.math.random.RandomGenerator random)
identifier
- the identifier for this Genomic.meiosis
- an implementer of Meiosis
.random
- an implementer of RandomGenerator
.Method Detail |
---|
public Chromosome getChromosome(int index)
Genomic_Sexual
object. Beware: this method is inconsistent with
Genomic_.getChromosomes()
, which includes all chromosomes.
getChromosome
in interface Genomic
getChromosome
in class Genomic_
Genomic_.getChromosome(int)
public Chromosome_Sex getChromosomeSex()
getChromosomeSex
in interface HasSexChromosome
HasSexChromosome.getChromosomeSex()
public Locus getLocusSex()
public void setExpressers(java.util.Map<Locus,Expresser> expressers)
setExpressers
in class Genomic_
Genomic_.setExpressers(java.util.Map)
protected void clearChromosomes()
clearChromosomes
in class Genomic_
Genomic_.clearChromosomes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |