ec.gp.ge
Class GEIndividual

java.lang.Object
  extended by ec.Individual
      extended by ec.vector.VectorIndividual
          extended by ec.vector.ByteVectorIndividual
              extended by ec.gp.ge.GEIndividual
All Implemented Interfaces:
Prototype, Setup, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable

public class GEIndividual
extends ByteVectorIndividual

GEIndividual is a simple subclass of ByteVectorIndividual which not only prints out (for humans) the Individual as a byte vector but also prints out the Individual's tree representation.

See Also:
Serialized Form

Field Summary
static java.lang.String BAD_TREE
           
static java.lang.String TREE_PREAMBLE
           
 
Fields inherited from class ec.vector.ByteVectorIndividual
genome, P_BYTEVECTORINDIVIDUAL
 
Fields inherited from class ec.Individual
birthday, count, evaluated, EVALUATED_PREAMBLE, fitness, P_INDIVIDUAL, species
 
Constructor Summary
GEIndividual()
           
 
Method Summary
 void printIndividualForHumans(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.ByteVectorIndividual
clamp, clone, defaultBase, defaultCrossover, defaultMutate, distanceTo, equals, genomeLength, genotypeToString, genotypeToStringForHumans, getGenome, hashCode, isInRange, join, parseGenotype, readGenotype, reset, setGenome, setGenomeLength, setup, split, writeGenotype
 
Methods inherited from class ec.vector.VectorIndividual
cloneGenes, reset, size
 
Methods inherited from class ec.Individual
compareTo, printIndividual, printIndividual, printIndividual, printIndividualForHumans, readIndividual, readIndividual, toString, writeIndividual
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TREE_PREAMBLE

public static final java.lang.String TREE_PREAMBLE
See Also:
Constant Field Values

BAD_TREE

public static final java.lang.String BAD_TREE
See Also:
Constant Field Values
Constructor Detail

GEIndividual

public GEIndividual()
Method Detail

printIndividualForHumans

public void printIndividualForHumans(EvolutionState state,
                                     int log)
Description copied from class: Individual
Should print the individual out in a pleasing way for humans, with a verbosity of Output.V_NO_GENERAL.

Overrides:
printIndividualForHumans in class Individual