ec.app.sequence
Class HallOfFame

java.lang.Object
  extended by ec.app.sequence.HallOfFame

public class HallOfFame
extends java.lang.Object

This is our simple implementation of Hall of Fame to capture good individuals from the run. It writes to the file instead of holding in memory to be crash safe.

Author:
udaykamath

Constructor Summary
HallOfFame()
           
 
Method Summary
 void addTopPopulationToHallOfFame(ec.EvolutionState state, ec.gp.GPIndividual[] inds, int size)
           
 void flushToFile(ec.EvolutionState state, java.lang.String fileName)
           
 void setup(java.lang.String fileName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HallOfFame

public HallOfFame()
Method Detail

setup

public void setup(java.lang.String fileName)

addTopPopulationToHallOfFame

public void addTopPopulationToHallOfFame(ec.EvolutionState state,
                                         ec.gp.GPIndividual[] inds,
                                         int size)

flushToFile

public void flushToFile(ec.EvolutionState state,
                        java.lang.String fileName)