JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.forceFields
Class ChromosomeIndividual

java.lang.Object
  extended bygov.nasa.javaGenes.core.Individual
      extended bygov.nasa.javaGenes.forceFields.ChromosomeIndividual
All Implemented Interfaces:
java.io.Serializable

public class ChromosomeIndividual
extends Individual

See Also:
Serialized Form

Field Summary
 
Fields inherited from class gov.nasa.javaGenes.core.Individual
evolvable, fitness
 
Constructor Summary
ChromosomeIndividual(Evolvable e, FitnessFunction f)
          Sets the evolvable to e and calculates the fitness using FitnessFunction f.
ChromosomeIndividual(TokenizeInput tokenizer)
          restore from a checkpoint
 
Method Summary
 Chromosome getChromosome()
           
 void stateSave(TokenizeOutput tokenizer)
          checkpoint
 
Methods inherited from class gov.nasa.javaGenes.core.Individual
bestIndividualIndex, evaluateFitness, evolvableSize, fitterThan, getEvolvable, getFitness, headerString, isCompatible, isSame, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChromosomeIndividual

public ChromosomeIndividual(Evolvable e,
                            FitnessFunction f)
Sets the evolvable to e and calculates the fitness using FitnessFunction f.


ChromosomeIndividual

public ChromosomeIndividual(TokenizeInput tokenizer)
restore from a checkpoint

Method Detail

stateSave

public void stateSave(TokenizeOutput tokenizer)
checkpoint

Overrides:
stateSave in class Individual

getChromosome

public Chromosome getChromosome()
Returns:
the evolvable as a Chromosome

JavaGenes, NASA Ames. Written largely by Al Globus