ec.gp.ge
Class GEIndividual
- java.lang.Object
-
- ec.Individual
-
- ec.vector.VectorIndividual
-
- ec.vector.IntegerVectorIndividual
-
- ec.gp.ge.GEIndividual
-
- All Implemented Interfaces:
- Prototype, Setup, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable
public class GEIndividual extends IntegerVectorIndividual
GEIndividual is a simple subclass of IntegerVectorIndividual which not only prints out (for humans) the Individual as a int vector but also prints out the Individual's tree representation.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringBAD_TREEstatic java.lang.StringERC_PREAMBLEstatic java.lang.StringGP_PREAMBLE-
Fields inherited from class ec.vector.IntegerVectorIndividual
genome, P_INTEGERVECTORINDIVIDUAL
-
Fields inherited from class ec.Individual
evaluated, EVALUATED_PREAMBLE, fitness, P_INDIVIDUAL, species
-
-
Constructor Summary
Constructors Constructor and Description GEIndividual()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidprintIndividualForHumans(EvolutionState state, int log)Should print the individual out in a pleasing way for humans, with a verbosity of Output.V_NO_GENERAL.-
Methods inherited from class ec.vector.IntegerVectorIndividual
clamp, clone, defaultBase, defaultCrossover, defaultMutate, distanceTo, equals, genomeLength, genotypeToString, genotypeToStringForHumans, getGenome, hashCode, isInRange, join, randomValueFromClosedInterval, readGenotype, reset, setGenome, setGenomeLength, setup, split, writeGenotype
-
Methods inherited from class ec.vector.VectorIndividual
cloneGenes, reset, size
-
Methods inherited from class ec.Individual
compareTo, merge, printIndividual, printIndividual, printIndividual, printIndividualForHumans, readIndividual, readIndividual, toString, writeIndividual
-
-
-
-
Field Detail
-
GP_PREAMBLE
public static final java.lang.String GP_PREAMBLE
- See Also:
- Constant Field Values
-
ERC_PREAMBLE
public static final java.lang.String ERC_PREAMBLE
- See Also:
- Constant Field Values
-
BAD_TREE
public static final java.lang.String BAD_TREE
- See Also:
- Constant Field Values
-
-
Method Detail
-
printIndividualForHumans
public void printIndividualForHumans(EvolutionState state, int log)
Description copied from class:IndividualShould print the individual out in a pleasing way for humans, with a verbosity of Output.V_NO_GENERAL.- Overrides:
printIndividualForHumansin classIndividual
-
-
DMelt 3.0 © DataMelt by jWork.ORG