JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.graph
Class GraphPopulation

java.lang.Object
  extended bygov.nasa.javaGenes.core.Population
      extended bygov.nasa.javaGenes.graph.GraphPopulation
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
MoleculePopulation

public class GraphPopulation
extends Population

Represents a population of evolvable Graph objects

See Also:
Serialized Form

Field Summary
 
Fields inherited from class gov.nasa.javaGenes.core.Population
generation, memory, population, time
 
Constructor Summary
GraphPopulation(GraphParameters parameters)
          Generate a random population
GraphPopulation(int size)
          create an empty population with int size members
 
Method Summary
 void fillSamples(ManySamples samples)
          Add Sample objects to ManySamples samples that summarize the population.
 Individual makeIndividual(Evolvable e, FitnessFunction f)
          Meant to be a general purpose method that creates individuals of whatever type are in this population.
 Population makePopulation(int size)
           
 
Methods inherited from class gov.nasa.javaGenes.core.Population
averageFitness, bestFitness, bestIndividual, bestIndividualIndex, countParts, evaluateFitness, fillEntropy, getEvolvable, getEvolvableHeader, getFitness, getGeneration, getIndex, getIndexRange, getIndividual, getLastIndex, getLogHeaderString, getLogString, getMemory, getParetoFront, getSize, getStandarPartOfLogHeaderString, getTime, getUniqueLogValue, getUniqueLogValueHeader, isDuplicate, isIndexLegal, makeIndividualArray, pick, pick, pick, report, retestStudents, setGeneration, setIndividual, setMemory, setTime, stateRestore, stateSave, totalEvolvableSize, worstFitness, worstFitness, worstIndividual, worstIndividual, worstIndividualIndex, worstIndividualIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphPopulation

public GraphPopulation(GraphParameters parameters)
Generate a random population


GraphPopulation

public GraphPopulation(int size)
create an empty population with int size members

Method Detail

makePopulation

public Population makePopulation(int size)
Overrides:
makePopulation in class Population
Returns:
a new empty population with int size members

makeIndividual

public Individual makeIndividual(Evolvable e,
                                 FitnessFunction f)
Description copied from class: Population
Meant to be a general purpose method that creates individuals of whatever type are in this population. Must be rewritten to actually do that.

Overrides:
makeIndividual in class Population
Returns:
a new Individual that has a Graph evolvable.

fillSamples

public void fillSamples(ManySamples samples)
Add Sample objects to ManySamples samples that summarize the population. Used for data analysis of evolution.

Overrides:
fillSamples in class Population
See Also:
Sample

JavaGenes, NASA Ames. Written largely by Al Globus