com.parabon.ec
Class DummyStatistics

java.lang.Object
  extended by ec.Statistics
      extended by com.parabon.ec.DummyStatistics
All Implemented Interfaces:
Setup, Singleton, java.io.Serializable

public class DummyStatistics
extends Statistics

This is a dummy object whose methods do nothing. It's used when we don't have a statistics object but need to pass one around, and in remote tasks where the statistics file can't be output.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class ec.Statistics
children, P_CHILD, P_NUMCHILDREN
 
Constructor Summary
DummyStatistics()
           
 
Method Summary
 void finalStatistics(EvolutionState state, int result)
          Called immediately after the run has completed.
 void generationBoundaryStatistics(EvolutionState state)
          STEADY-STATE: called each time the generation count increments
 void individualsBredStatistics(SteadyStateEvolutionState state, Individual[] newIndividuals, int[] subpopulations, int[] indicies)
          STEADY-STATE: called each time new individuals are bred during the steady-state process.
 void individualsEvaluatedStatistics(SteadyStateEvolutionState state, Individual[] newIndividuals, Individual[] oldIndividuals, int[] subpopulations, int[] indicies)
          STEADY-STATE: called each time new individuals are evaluated during the steady-state process.
 void postBreedingStatistics(EvolutionState state)
          GENERATIONAL: Called immediately after breeding occurs.
 void postCheckpointStatistics(EvolutionState state)
          Called immediately after checkpointing occurs.
 void postEvaluationStatistics(EvolutionState state)
          GENERATIONAL: Called immediately after evaluation occurs.
 void postInitialEvaluationStatistics(int subpop, SteadyStateEvolutionState state)
          STEADY-STATE: called immediately after the a subpopulation's first full evaluation has been completed.
 void postInitializationStatistics(EvolutionState state)
          GENERATIONAL: Called immediately after population initialization occurs.
 void postPostBreedingExchangeStatistics(EvolutionState state)
          Called immediately after the post-breeding exchange occurs.
 void postPreBreedingExchangeStatistics(EvolutionState state)
          Called immediately after the pre-breeding exchange occurs.
 void preBreedingStatistics(EvolutionState state)
          GENERATIONAL: Called immediately before breeding occurs.
 void preCheckpointStatistics(EvolutionState state)
          Called immediately before checkpointing occurs.
 void preEvaluationStatistics(EvolutionState state)
          GENERATIONAL: Called immediately before evaluation occurs.
 void preInitialEvaluationStatistics(SteadyStateEvolutionState state)
          STEADY-STATE: called immediately before the initial generation is evaluated.
 void preInitializationStatistics(EvolutionState state)
          Called immediately before population initialization occurs.
 void prePostBreedingExchangeStatistics(EvolutionState state)
          Called immediately before the post-breeding exchange occurs.
 void prePreBreedingExchangeStatistics(EvolutionState state)
          Called immediately before the pre-breeding exchange occurs.
 void setup(EvolutionState state, 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyStatistics

public DummyStatistics()
Method Detail

setup

public void setup(EvolutionState state,
                  Parameter base)
Description copied from interface: 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 Setup
Overrides:
setup in class Statistics

preInitializationStatistics

public void preInitializationStatistics(EvolutionState state)
Description copied from class: Statistics
Called immediately before population initialization occurs.

Overrides:
preInitializationStatistics in class Statistics

postInitializationStatistics

public void postInitializationStatistics(EvolutionState state)
Description copied from class: Statistics
GENERATIONAL: Called immediately after population initialization occurs.

Overrides:
postInitializationStatistics in class Statistics

preCheckpointStatistics

public void preCheckpointStatistics(EvolutionState state)
Description copied from class: Statistics
Called immediately before checkpointing occurs.

Overrides:
preCheckpointStatistics in class Statistics

postCheckpointStatistics

public void postCheckpointStatistics(EvolutionState state)
Description copied from class: Statistics
Called immediately after checkpointing occurs.

Overrides:
postCheckpointStatistics in class Statistics

preEvaluationStatistics

public void preEvaluationStatistics(EvolutionState state)
Description copied from class: Statistics
GENERATIONAL: Called immediately before evaluation occurs.

Overrides:
preEvaluationStatistics in class Statistics

postEvaluationStatistics

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

Overrides:
postEvaluationStatistics in class Statistics

prePreBreedingExchangeStatistics

public void prePreBreedingExchangeStatistics(EvolutionState state)
Description copied from class: Statistics
Called immediately before the pre-breeding exchange occurs.

Overrides:
prePreBreedingExchangeStatistics in class Statistics

postPreBreedingExchangeStatistics

public void postPreBreedingExchangeStatistics(EvolutionState state)
Description copied from class: Statistics
Called immediately after the pre-breeding exchange occurs.

Overrides:
postPreBreedingExchangeStatistics in class Statistics

preBreedingStatistics

public void preBreedingStatistics(EvolutionState state)
Description copied from class: Statistics
GENERATIONAL: Called immediately before breeding occurs.

Overrides:
preBreedingStatistics in class Statistics

postBreedingStatistics

public void postBreedingStatistics(EvolutionState state)
Description copied from class: Statistics
GENERATIONAL: Called immediately after breeding occurs.

Overrides:
postBreedingStatistics in class Statistics

prePostBreedingExchangeStatistics

public void prePostBreedingExchangeStatistics(EvolutionState state)
Description copied from class: Statistics
Called immediately before the post-breeding exchange occurs.

Overrides:
prePostBreedingExchangeStatistics in class Statistics

postPostBreedingExchangeStatistics

public void postPostBreedingExchangeStatistics(EvolutionState state)
Description copied from class: Statistics
Called immediately after the post-breeding exchange occurs.

Overrides:
postPostBreedingExchangeStatistics in class Statistics

finalStatistics

public void finalStatistics(EvolutionState state,
                            int result)
Description copied from class: 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 Statistics

preInitialEvaluationStatistics

public void preInitialEvaluationStatistics(SteadyStateEvolutionState state)
Description copied from class: Statistics
STEADY-STATE: called immediately before the initial generation is evaluated.

Overrides:
preInitialEvaluationStatistics in class Statistics

postInitialEvaluationStatistics

public void postInitialEvaluationStatistics(int subpop,
                                            SteadyStateEvolutionState state)
Description copied from class: Statistics
STEADY-STATE: called immediately after the a subpopulation's first full evaluation has been completed.

Overrides:
postInitialEvaluationStatistics in class Statistics

individualsBredStatistics

public void individualsBredStatistics(SteadyStateEvolutionState state,
                                      Individual[] newIndividuals,
                                      int[] subpopulations,
                                      int[] indicies)
Description copied from class: Statistics
STEADY-STATE: called each time new individuals are bred during the steady-state process.

Overrides:
individualsBredStatistics in class Statistics

individualsEvaluatedStatistics

public void individualsEvaluatedStatistics(SteadyStateEvolutionState state,
                                           Individual[] newIndividuals,
                                           Individual[] oldIndividuals,
                                           int[] subpopulations,
                                           int[] indicies)
Description copied from class: Statistics
STEADY-STATE: called each time new individuals are evaluated during the steady-state process. You can look up the individuals in state.newIndividuals[]

Overrides:
individualsEvaluatedStatistics in class Statistics

generationBoundaryStatistics

public void generationBoundaryStatistics(EvolutionState state)
Description copied from class: Statistics
STEADY-STATE: called each time the generation count increments

Overrides:
generationBoundaryStatistics in class Statistics