|
||||||||||
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.foundation.AuditableList<Gene> com.rubecula.darwin.domain.genetics.Genotype_
public abstract class Genotype_
This abstract class provides base definitions for implementers of
Genome
, the genetic information contained in an Organism belonging to
a Taxon. A Genome may contain any number of Genes, though in practice the
number is determined by the Genomic which defines this Genome. The structure
of Genome is approximately parallel to that of Genomic
.
Field Summary | |
---|---|
protected int |
_ploidy
The "ploidy" (or "oid") is the genetic "form" of the this genome. |
protected static org.apache.commons.logging.Log |
LOG
The logger for this class. |
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 |
Fields inherited from interface com.rubecula.darwin.domain.helper.Ploidy |
---|
DIPLOID, HAPLOID |
Constructor Summary | |
---|---|
protected |
Genotype_(int ploidy)
Constructor which creates a Genome instance with the given "ploidy" . |
Method Summary | |
---|---|
boolean |
addGene(Gene gene)
Add gene to this Genotype at its end. |
void |
addGene(int locus,
Gene gene)
Add a Gene to this Genotype at a specific index. |
void |
addGenes(Genes genes)
Iteratively call addGene(Gene) for each of the genes provided. |
boolean |
censusMe(Census census,
java.lang.Object context)
Method to census this object. |
java.lang.Object |
clone()
|
void |
doCensus(FrequencyMap<Allele> alleleFrequencies)
|
boolean |
equals(java.lang.Object obj)
Determine equality based on the value of getBases() . |
java.lang.String |
getBases()
|
java.util.Collection<? extends Censusible> |
getCensusibleChildren()
Method to return a list of censusible children of this object. |
Gene |
getGene(int locus)
|
java.lang.String |
getIdentifier()
|
protected java.util.Collection<Gene> |
getList()
|
int |
getPloidy()
The "ploidy" of this Genome. |
java.lang.String |
getSignature()
|
int |
hashCode()
return the hashcode of the bases. |
Methods inherited from class com.rubecula.darwin.foundation.AuditableList |
---|
add, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, setList, size, subList, toArray, toArray |
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 |
Methods inherited from interface java.util.List |
---|
add, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
Field Detail |
---|
protected final int _ploidy
protected static final org.apache.commons.logging.Log LOG
Constructor Detail |
---|
protected Genotype_(int ploidy)
"ploidy"
.
ploidy
- the ploidy (haploid, diploid) of the genome.Method Detail |
---|
public boolean addGene(Gene gene)
Genotype
gene
to this Genotype at its end.
addGene
in interface Genotype
gene
- the gene to add
AuditableList.add(net.sf.tostring0.IToString)
public void addGene(int locus, Gene gene)
Genotype
addGene
in interface Genotype
locus
- gene
- Genotype.addGene(int,
com.rubecula.darwin.domain.helper.Gene)
public void addGenes(Genes genes)
addGene(Gene)
for each of the genes provided.
addGenes
in interface Genotype
genes
- Genotype.addGenes(com.rubecula.darwin.domain.helper.Genes)
public boolean censusMe(Census census, java.lang.Object context)
Censusible
censusMe
in interface Censusible
census
- the census object which will present the results of taking
this censuscontext
- an arbitrary object which can be used by the census object to
provide appropriate context for this object.
Censusible.getCensusibleChildren()
.Censusible.censusMe(com.rubecula.darwin.domain.helper.Census,
java.lang.Object)
public java.lang.Object clone()
clone
in class java.lang.Object
Object.clone()
public void doCensus(FrequencyMap<Allele> alleleFrequencies)
doCensus
in interface Genotype
alleleFrequencies
- public boolean equals(java.lang.Object obj)
getBases()
. Ignore the
super-class.
equals
in interface java.util.Collection<Gene>
equals
in interface java.util.List<Gene>
equals
in class AuditableList<Gene>
AuditableList.equals(java.lang.Object)
public java.lang.String getBases()
getBases
in interface Basic
Basic.getBases()
public java.util.Collection<? extends Censusible> getCensusibleChildren()
Censusible
getCensusibleChildren
in interface Censusible
ArrayList
of censusible objects.Censusible.getCensusibleChildren()
public Gene getGene(int locus)
getGene
in interface Genes
locus
- an integer from 0...
Genes.getGene(int)
public java.lang.String getIdentifier()
getIdentifier
in interface net.sf.tostring0.Identifiable
getIdentifier
in class AuditableList<Gene>
AuditableList.getIdentifier()
public int getPloidy()
getPloidy
in interface Ploidy
Ploidy.HAPLOID
, i.e.
simple or Ploidy.DIPLOID
, i.e. double.Ploidy.getPloidy()
public java.lang.String getSignature()
getSignature
in interface CacheSignature
CacheSignature.getSignature()
public int hashCode()
hashCode
in interface java.util.Collection<Gene>
hashCode
in interface java.util.List<Gene>
hashCode
in class AuditableList<Gene>
AuditableList.hashCode()
protected java.util.Collection<Gene> getList()
getList
in class AuditableList<Gene>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |