JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.graph
Class GraphIndividual

java.lang.Object
  extended bygov.nasa.javaGenes.core.Individual
      extended bygov.nasa.javaGenes.graph.GraphIndividual
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
MoleculeIndividual

public class GraphIndividual
extends Individual

Represents a genetic software graph individual.

See Also:
Serialized Form

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

Constructor Detail

GraphIndividual

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

Method Detail

getGraph

public Graph getGraph()
Returns:
the evolvable as a Graph

JavaGenes, NASA Ames. Written largely by Al Globus