org.jgap
Interface ICompositeGene
- All Superinterfaces:
- java.lang.Comparable, Gene, IUniqueKey, java.io.Serializable
- All Known Subinterfaces:
- Supergene
- All Known Implementing Classes:
- AbstractSupergene, CompositeGene, NickelsPenniesSupergene
public interface ICompositeGene
- extends Gene
Interface for Genes being composed by other genes.
- Since:
- 2.6
|
Field Summary |
static java.lang.String |
CVS_REVISION
String containing the CVS revision. |
| 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 |
CVS_REVISION
static final java.lang.String CVS_REVISION
- String containing the CVS revision. Read out via reflection!
- See Also:
- Constant Field Values
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)