ec.app.sequence
Class StatisticPluginForHallofFame

java.lang.Object
  extended by ec.Statistics
      extended by ec.app.sequence.StatisticPluginForHallofFame
All Implemented Interfaces:
ec.Setup, ec.Singleton, java.io.Serializable

public class StatisticPluginForHallofFame
extends ec.Statistics

This class is meant for getting plugin for HallOfFame. By using this we get hook when evaluations are done, we try to rank the Individuals based on fitness. It uses size using the parameter hall-of-fame and writes the top individuals to hall-of-fame-file parameter value file. This can then be used for interpretation.

Author:
udaykamath
See Also:
Serialized Form

Field Summary
 
Fields inherited from class ec.Statistics
children, P_CHILD, P_NUMCHILDREN
 
Constructor Summary
StatisticPluginForHallofFame()
           
 
Method Summary
 void finalStatistics(ec.EvolutionState state, int result)
          Called immediately after the run has completed.
 void postEvaluationStatistics(ec.EvolutionState state)
          GENERATIONAL: Called immediately after evaluation occurs.
 void setup(ec.EvolutionState state, ec.util.Parameter base)
          Sets up the object by reading it from the parameters stored in state, built off of the parameter base base.
 
Methods inherited from class ec.Statistics
enteringInitialPopulationStatistics, enteringSteadyStateStatistics, generationBoundaryStatistics, individualsBredStatistics, individualsEvaluatedStatistics, postBreedingStatistics, postCheckpointStatistics, postInitializationStatistics, postPostBreedingExchangeStatistics, postPreBreedingExchangeStatistics, preBreedingStatistics, preCheckpointStatistics, preEvaluationStatistics, preInitializationStatistics, prePostBreedingExchangeStatistics, prePreBreedingExchangeStatistics
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatisticPluginForHallofFame

public StatisticPluginForHallofFame()
Method Detail

setup

public void setup(ec.EvolutionState state,
                  ec.util.Parameter base)
Description copied from interface: ec.Setup
Sets up the object by reading it from the parameters stored in state, built off of the parameter base base. If an ancestor implements this method, be sure to call super.setup(state,base); before you do anything else.

Specified by:
setup in interface ec.Setup
Overrides:
setup in class ec.Statistics

postEvaluationStatistics

public void postEvaluationStatistics(ec.EvolutionState state)
Description copied from class: ec.Statistics
GENERATIONAL: Called immediately after evaluation occurs.

Overrides:
postEvaluationStatistics in class ec.Statistics

finalStatistics

public void finalStatistics(ec.EvolutionState state,
                            int result)
Description copied from class: ec.Statistics
Called immediately after the run has completed. result is either state.R_FAILURE, indicating that an ideal individual was not found, or state.R_SUCCESS, indicating that an ideal individual was found.

Overrides:
finalStatistics in class ec.Statistics