|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Supergene
Supergene represents several genes, which usually control closely
related aspects of the phenotype. The Supergene mutates only in such way,
that the allele combination remains valid. Mutations, that make allele
combination invalid, are rejected inside Gene.applyMutation(int, double)
method. Supergene components can also be a Supergene, creating the tree-like
structures in this way.
In biology, the invalid combinations represent completely broken metabolic chains, unbalanced signaling pathways (activator without supressor) and so on.
At least about 5 % of the randomly generated Supergene suparallele values should be valid. If the valid combinations represents too small part of all possible combinations, it can take too long to find the suitable mutation that does not brake a supergene. If you face this problem, try to split the supergene into several sub-supergenes.
| Field Summary | |
|---|---|
static java.lang.String |
CVS_REVISION
String containing the CVS revision. |
| Fields inherited from interface org.jgap.Gene |
|---|
PERSISTENT_FIELD_DELIMITER |
| Method Summary | |
|---|---|
Gene |
geneAt(int a_index)
Returns the Gene at the given index (locus) within the Supergene. |
Gene[] |
getGenes()
Get the array of genes - components of this supergene. |
SupergeneValidator |
getValidator()
Gets an object, responsible for deciding if the Supergene allele combination is valid. |
boolean |
isValid()
Test the allele combination of this supergene for validity. |
void |
setValidator(SupergeneValidator a_validator)
Sets an object, responsible for deciding if the Supergene allele combination is valid. |
| Methods inherited from interface org.jgap.ICompositeGene |
|---|
addGene |
| Methods inherited from interface org.jgap.Gene |
|---|
applyMutation, cleanup, getAllele, getApplicationData, getConfiguration, getEnergy, getPersistentRepresentation, isCompareApplicationData, newGene, setAllele, setApplicationData, setCompareApplicationData, setConstraintChecker, setEnergy, setToRandomValue, setValueFromPersistentRepresentation, size, toString |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface org.jgap.IUniqueKey |
|---|
getUniqueID, getUniqueIDTemplate, setUniqueIDTemplate |
| Field Detail |
|---|
static final java.lang.String CVS_REVISION
| Method Detail |
|---|
boolean isValid()
Gene[] getGenes()
Gene geneAt(int a_index)
geneAt in interface ICompositeGenea_index - the index of the gene value to be returned
void setValidator(SupergeneValidator a_validator)
SupergeneValidator getValidator()
|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||