|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rubecula.util.AuditableObject
com.rubecula.darwin.core.Gene_Abstract
public abstract class Gene_Abstract
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. |
| Constructor Summary | |
|---|---|
protected |
Gene_Abstract(int ode)
Primary protected constructor to create a Gene_Abstract which appears at a particular locus. |
| Method Summary | |
|---|---|
String |
audit(String label)
Method to return a detailed string from an arithmetical object for debugging purposes. |
Object |
clone()
|
Allele |
getAllele(int index)
Accessor method to return the indexth allele for this gene. |
String |
getIdentifier()
Method to get the specific identifier for an object. |
int |
getOde()
Method to return the genetic form for this gene. |
protected Gene |
mutate(Genome genome)
Method to get a mutated copy of a Gene. |
void |
setAllele(int index,
Allele allele)
Mutator method to set the indexth allele for this gene. |
protected void |
setAlleles(Allele[] alleles)
|
String |
toString()
|
| Methods inherited from class com.rubecula.util.AuditableObject |
|---|
audit, audit, audit |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.commons.logging.Log log
| Constructor Detail |
|---|
protected Gene_Abstract(int ode)
| Method Detail |
|---|
public String audit(String label)
audit in interface Auditablelabel - String: the label to associate with the data
public Object clone()
clone in class AuditableObjectpublic Allele getAllele(int index)
Gene
getAllele in interface Geneindex - which allele to get.
public String getIdentifier()
Identifiable
getIdentifier in interface IdentifiableIdentifiable.getIdentifier()public int getOde()
Gene
getOde in interface Gene
public void setAllele(int index,
Allele allele)
Gene
setAllele in interface Geneindex - which allele is to be set.allele - the value of the allele to set.public String toString()
toString in class Objectprotected void setAlleles(Allele[] alleles)
alleles - the alleles to set (ignored)
UnsupportedOperationExceptionprotected Gene mutate(Genome genome)
genome -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||