ec.steadystate
Class SteadyStateBreeder

java.lang.Object
  extended by ec.Breeder
      extended by ec.simple.SimpleBreeder
          extended by ec.steadystate.SteadyStateBreeder
All Implemented Interfaces:
Setup, Singleton, java.io.Serializable

public class SteadyStateBreeder
extends SimpleBreeder

See Also:
Serialized Form

Field Summary
 BreedingPipeline[] bp
          If st.firstTimeAround, this acts exactly like SimpleBreeder.
 SelectionMethod[] deselectors
          Loaded during the first iteration of breedPopulation
 int numDuplicateRetries
          Do we allow duplicates?
static java.lang.String P_DESELECTOR
           
static java.lang.String P_RETRIES
           
 
Fields inherited from class ec.simple.SimpleBreeder
elite, P_ELITE
 
Constructor Summary
SteadyStateBreeder()
           
 
Method Summary
 Individual breedIndividual(EvolutionState state, int subpop, int thread)
           
 void finishPipelines(EvolutionState state)
           
 void individualReplaced(SteadyStateEvolutionState state, int subpopulation, int thread, int individual)
          Called whenever individuals have been replaced by new individuals in the population.
 void prepareToBreed(EvolutionState state, int thread)
           
 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.
 void sourcesAreProperForm(SteadyStateEvolutionState state, BreedingPipeline[] breedingPipelines)
          Called to check to see if the breeding sources are correct -- if you use this method, you must call state.output.exitIfErrors() immediately afterwards.
 
Methods inherited from class ec.simple.SimpleBreeder
breedPopChunk, breedPopulation, loadElites
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bp

public BreedingPipeline[] bp
If st.firstTimeAround, this acts exactly like SimpleBreeder. Else, it only breeds one new individual per subpopulation, to place in position 0 of the subpopulation.


P_DESELECTOR

public static final java.lang.String P_DESELECTOR
See Also:
Constant Field Values

P_RETRIES

public static final java.lang.String P_RETRIES
See Also:
Constant Field Values

deselectors

public SelectionMethod[] deselectors
Loaded during the first iteration of breedPopulation


numDuplicateRetries

public int numDuplicateRetries
Do we allow duplicates?

Constructor Detail

SteadyStateBreeder

public SteadyStateBreeder()
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 SimpleBreeder

sourcesAreProperForm

public void sourcesAreProperForm(SteadyStateEvolutionState state,
                                 BreedingPipeline[] breedingPipelines)
Called to check to see if the breeding sources are correct -- if you use this method, you must call state.output.exitIfErrors() immediately afterwards.


individualReplaced

public void individualReplaced(SteadyStateEvolutionState state,
                               int subpopulation,
                               int thread,
                               int individual)
Called whenever individuals have been replaced by new individuals in the population.


finishPipelines

public void finishPipelines(EvolutionState state)

prepareToBreed

public void prepareToBreed(EvolutionState state,
                           int thread)

breedIndividual

public Individual breedIndividual(EvolutionState state,
                                  int subpop,
                                  int thread)