ec.simple
Class SimpleInitializer

java.lang.Object
  |
  +--ec.Initializer
        |
        +--ec.simple.SimpleInitializer
All Implemented Interfaces:
java.io.Serializable, Setup, Singleton
Direct Known Subclasses:
GPInitializer, RuleInitializer

public class SimpleInitializer
extends Initializer

SimpleInitializer is a default Initializer which initializes a Population by calling the Population's populate(...) method. For most applications, this should suffice.

See Also:
Serialized Form

Fields inherited from class ec.Initializer
P_POP
 
Constructor Summary
SimpleInitializer()
           
 
Method Summary
 Population initialPopulation(EvolutionState state)
          Creates, populates, and returns a new population by making a new population, calling setup(...) on it, and calling populate(...) on it.
 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

SimpleInitializer

public SimpleInitializer()
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.

initialPopulation

public Population initialPopulation(EvolutionState state)
Creates, populates, and returns a new population by making a new population, calling setup(...) on it, and calling populate(...) on it. Obviously, this is an expensive method. It should only be called once typically in a run.
Overrides:
initialPopulation in class Initializer