|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Genome
Defines the genetic information contained in a
Darwinian system.
A Genome may be either haploid (a single strand of genes) or diploid
(a double strand),
though, theoretically, a Genome could have any number of genes at a particular
locus.
This number is the "ode" or ("oidity") and can be accessed via getOde().
A genome is essentially a list of Locus instances.
Other properties of the genome include:
an implementation of the Expression interface and
an implementation of the Meiosis interface.
Note that there is currently no division of Loci into
Chromosomes.
TODO Is that reasonable?
| Field Summary | |
|---|---|
static int |
DIPLOID
2 (two genes at a locus). |
static int |
HAPLOID
1 (one gene at a locus). |
| Method Summary | |
|---|---|
void |
add(int index,
Locus locus)
Method to add a Locus at the specified index. |
boolean |
add(Locus locus)
Method to add a Locus at the end of this Genome. |
Expression |
getExpresser()
The implementer of Expression which an application has
specified. |
Factory |
getFactory()
|
Locus |
getLocus(int index)
|
Meiosis |
getMeioter()
|
Mutator |
getMutator()
|
int |
getOde()
Method to return the genetic form for this genome. |
int |
size()
|
| Field Detail |
|---|
static final int DIPLOID
static final int HAPLOID
| Method Detail |
|---|
void add(int index,
Locus locus)
index - the index at which the new object will appear.locus - a locus to be inserted into this Genome.List.add(int, java.lang.Object)boolean add(Locus locus)
locus - a locus to be inserted into this Genome.add(int, Locus)Expression getExpresser()
Expression which an application has
specified.
Factory getFactory()
Factory for this genome.
TODO since there is only one Factory interface and it creates objects
of various kinds, not just Genotypes, Genes, Alleles, etc.
we should consider splitting it into Genome-related factory methods and non-genome-related factory methods.Locus getLocus(int index)
index -
index (0..N)Meiosis getMeioter()
MeiosisMutator getMutator()
int getOde()
HAPLOID, i.e. simple or DIPLOID, i.e. double.int size()
Locus)
defined for this Genome.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||