|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.tostring0.AToString
com.rubecula.darwin.domain.genetics.Gene_
public abstract class Gene_
This abstract class represents a particular gene at a locus of a genome. In a diploid system there will be two genes at a locus. In most systems there is one. A gene can take as its "value" an Allele which is valid at the given locus.
| Field Summary | |
|---|---|
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 |
Gene_(int ploidy)
Primary protected constructor to create a Gene_ which appears at a particular locus. |
| Method Summary | |
|---|---|
boolean |
censusMe(Census census,
java.lang.Object context)
Method to census this object. |
java.lang.Object |
clone()
XXX |
boolean |
equals(java.lang.Object obj)
|
Allele |
getAllele(int index)
Accessor method to return the indexth allele for this gene. |
int |
getAlleleCount()
|
java.lang.String |
getAlleleKey(int index)
Accessor method to return the key to the indexth allele for this gene. |
java.lang.String |
getBases()
|
java.util.Collection<? extends Censusible> |
getCensusibleChildren()
Method to return a list of censusible children of this object. |
java.lang.String |
getIdentifier()
|
Locus |
getLocus()
|
int |
getPloidy()
XXX |
java.lang.String |
getSignature()
|
int |
hashCode()
|
Gene |
mutate(Mutator mutator)
Method to get a mutated copy of a Gene. |
void |
setAllele(int index,
java.lang.String allele)
XXX It's the responsibility of the caller to ensure that the indicated allele is valid for the locus to which this gene will belong. |
void |
setLocus(Locus locus)
Set the locus for this gene. |
| 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 |
| Field Detail |
|---|
protected static final org.apache.commons.logging.Log LOG
| Constructor Detail |
|---|
protected Gene_(int ploidy)
ploidy - the number of alleles at any given gene locus| Method Detail |
|---|
public boolean censusMe(Census census,
java.lang.Object context)
Censusible
censusMe in interface Censusiblecensus - 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.ObjectObject.clone()public boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public Allele getAllele(int index)
Gene
getAllele in interface Geneindex -
public int getAlleleCount()
getAlleleCount in interface Genepublic java.lang.String getAlleleKey(int index)
Gene
getAlleleKey in interface Geneindex - which allele to get.
Gene.getAlleleKey(int)public java.lang.String getBases()
getBases in interface BasicBasic.getBases()public java.util.Collection<? extends Censusible> getCensusibleChildren()
Censusible
getCensusibleChildren in interface CensusibleArrayList of censusible objects.Censusible.getCensusibleChildren()public java.lang.String getIdentifier()
getIdentifier in interface net.sf.tostring0.IdentifiableIdentifiable.getIdentifier()public Locus getLocus()
getLocus in interface GeneGene.getLocus()public int getPloidy()
getPloidy in interface PloidyPloidy.HAPLOID, i.e.
simple or Ploidy.DIPLOID, i.e. double.Ploidy.getPloidy()public java.lang.String getSignature()
getSignature in interface CacheSignatureCacheSignature.getSignature()public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public Gene mutate(Mutator mutator)
mutate in interface Genemutator -
Gene.mutate(com.rubecula.darwin.domain.helper.Mutator)
public void setAllele(int index,
java.lang.String allele)
setAllele in interface Geneindex - which allele is to be set.allele - the value of the allele to set.Gene.setAllele(int, String)public void setLocus(Locus locus)
Gene
setLocus in interface GeneGene.setLocus(com.rubecula.darwin.domain.helper.Locus)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||