|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Gene
Defines the operations and properties of a Gene. A Gene is an object which is
found at the locus of a genome. In a diploid system there will be two "genes"
at any given locus. In most (haploid) systems there is one. A gene can take
as its "value" an Allele
which is valid at the given Locus
.
Care must be taken to distinguish between a Gene and a Locus
. In this
framework, Gene is used to model the actual alleles that are present in the
Genome
of a particular Organism
. Locus, on the other hand, is
used to model the set of possible alleles that can appear at a locus of a
Genomic
.
Field Summary |
---|
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 |
Method Summary | |
---|---|
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. |
Locus |
getLocus()
|
Gene |
mutate(Mutator mutator)
Method to get a mutated copy of a Gene. |
void |
setAllele(int index,
java.lang.String allele)
Mutator method to set the indexth allele for this gene. |
void |
setLocus(Locus locus)
Set the locus for this gene. |
Methods inherited from interface net.sf.tostring0.IToString |
---|
toString, toStringBrief, toStringId |
Methods inherited from interface com.rubecula.darwin.domain.helper.Ploidy |
---|
getPloidy |
Methods inherited from interface com.rubecula.darwin.domain.helper.Basic |
---|
getBases |
Methods inherited from interface com.rubecula.darwin.domain.helper.CacheSignature |
---|
getSignature |
Methods inherited from interface com.rubecula.darwin.domain.helper.Censusible |
---|
censusMe, getCensusibleChildren |
Method Detail |
---|
Allele getAllele(int index)
index
- which allele to get.
int getAlleleCount()
java.lang.String getAlleleKey(int index)
index
- which allele to get.
Locus getLocus()
Gene mutate(Mutator mutator)
mutator
-
void setAllele(int index, java.lang.String allele)
index
- which allele is to be set.allele
- the value of the allele to set.void setLocus(Locus locus)
locus
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |