org.jgap
Interface IPersistentRepresentation
-
- All Known Implementing Classes:
- AbstractSupergene, BaseChromosome, BooleanGene, Chromosome, CompositeGene, DoubleGene, FixedBinaryGene, IntegerGene, MapGene, MutipleIntegerGene, Population, SetGene, StringGene
public interface IPersistentRepresentationInterface for objects that can represent themselves as a string and parse this string later on to generate a new instance of themselves.- Since:
- 3.2
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringCVS_REVISIONString containing the CVS revision.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description java.lang.StringgetPersistentRepresentation()Returns a persistent representation of an entity (such as a chromosome or a gene).voidsetValueFromPersistentRepresentation(java.lang.String a_representation)Counterpart of getPersistentRepresentation.
-
-
-
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
-
getPersistentRepresentation
java.lang.String getPersistentRepresentation()
Returns a persistent representation of an entity (such as a chromosome or a gene).- Returns:
- string representation of current state
- Throws:
java.lang.UnsupportedOperationException- Since:
- 3.2
-
setValueFromPersistentRepresentation
void setValueFromPersistentRepresentation(java.lang.String a_representation) throws UnsupportedRepresentationExceptionCounterpart of getPersistentRepresentation.- Parameters:
a_representation- the string representation retrieved from a prior call to the getPersistentRepresentation() method- Throws:
UnsupportedRepresentationException- Since:
- 3.2
-
-
DMelt 3.0 © DataMelt by jWork.ORG