org.jgap
Interface ICompositeGene
-
- All Superinterfaces:
- java.lang.Comparable, Gene, IUniqueKey, java.io.Serializable
- All Known Subinterfaces:
- Supergene
- All Known Implementing Classes:
- AbstractSupergene, CompositeGene
public interface ICompositeGene extends Gene
Interface for Genes being composed by other genes.- Since:
- 2.6
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringCVS_REVISIONString containing the CVS revision.-
Fields inherited from interface org.jgap.Gene
PERSISTENT_FIELD_DELIMITER
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidaddGene(Gene a_gene)Adds a gene to the composed GeneGenegeneAt(int a_index)-
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 org.jgap.IUniqueKey
getUniqueID, getUniqueIDTemplate, setUniqueIDTemplate
-
-
-
-
Field Detail
-
CVS_REVISION
static final java.lang.String CVS_REVISION
String containing the CVS revision. Read out via reflection!- See Also:
- Constant Field Values
-
-
Method Detail
-
addGene
void addGene(Gene a_gene)
Adds a gene to the composed Gene- Parameters:
a_gene- the gene to add- Since:
- 2.6 (since earlier in CompositeGene)
-
geneAt
Gene geneAt(int a_index)
- Parameters:
a_index- index to return the gene at- Returns:
- the gene at the given index
- Since:
- 2.6 (since 1.1 in CompositeGene)
-
-
DMelt 3.0 © DataMelt by jWork.ORG