ec.steadystate
Interface SteadyStateStatisticsForm

All Known Implementing Classes:
AntStatistics, EdgeStatistics, FinalStatistics, KozaStatistics, LawnmowerStatistics, SimpleStatistics

public interface SteadyStateStatisticsForm

This interface defines the hooks for SteadyStateEvolutionState objects to update themselves on. Note that the the only methods in common with the standard statistics are initialization and final. This is an optional interface: SteadyStateEvolutionState will complain, but will permit Statistics objects that don't adhere to it, though they will only have their initialization and final statistics methods called!

See SteadyStateEvolutionState for how regular Statistics objects' hook methods are called in steady state evolution.

Version:
1.0
Author:
Sean Luke

Method Summary
 void finalStatistics(EvolutionState state, int result)
          Called immediately after the run has completed.
 void generationBoundaryStatistics(EvolutionState state)
          Called when the generation count increments
 void individualsBredStatistics(SteadyStateEvolutionState state, Individual[] newIndividuals, int[] subpopulations, int[] indicies)
          Called each time new individuals are bred during the steady-state process.
 void individualsEvaluatedStatistics(SteadyStateEvolutionState state, Individual[] newIndividuals, Individual[] oldIndividuals, int[] subpopulations, int[] indicies)
          Called each time new individuals are evaluated during the steady-state process, NOT including the initial generation's individuals.
 void postInitialEvaluationStatistics(int subpop, SteadyStateEvolutionState state)
          Called immediately after the initial generation is evaluated.
 void preInitialEvaluationStatistics(SteadyStateEvolutionState state)
          Called immediately before the initial generation is evaluated.
 void preInitializationStatistics(EvolutionState state)
          Called immediately before population initialization occurs.
 

Method Detail

preInitializationStatistics

void preInitializationStatistics(EvolutionState state)
Called immediately before population initialization occurs.


preInitialEvaluationStatistics

void preInitialEvaluationStatistics(SteadyStateEvolutionState state)
Called immediately before the initial generation is evaluated.


postInitialEvaluationStatistics

void postInitialEvaluationStatistics(int subpop,
                                     SteadyStateEvolutionState state)
Called immediately after the initial generation is evaluated.


individualsBredStatistics

void individualsBredStatistics(SteadyStateEvolutionState state,
                               Individual[] newIndividuals,
                               int[] subpopulations,
                               int[] indicies)
Called each time new individuals are bred during the steady-state process.


individualsEvaluatedStatistics

void individualsEvaluatedStatistics(SteadyStateEvolutionState state,
                                    Individual[] newIndividuals,
                                    Individual[] oldIndividuals,
                                    int[] subpopulations,
                                    int[] indicies)
Called each time new individuals are evaluated during the steady-state process, NOT including the initial generation's individuals.


finalStatistics

void finalStatistics(EvolutionState state,
                     int result)
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.


generationBoundaryStatistics

void generationBoundaryStatistics(EvolutionState state)
Called when the generation count increments