ec
Class Initializer

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

public abstract class Initializer
extends java.lang.Object
implements Singleton

The Initializer is a singleton object whose job is to initialize the population at the beginning of the run. It does this by providing a population through the initialPopulation(...) method.

Parameters
pop
classname, inherits or = ec.Population
(the class for a new population)

Parameter bases
pop The base for a new population's set up parameters

See Also:
Serialized Form

Field Summary
static java.lang.String P_POP
          parameter for a new population
 
Constructor Summary
Initializer()
           
 
Method Summary
abstract  Population initialPopulation(EvolutionState state)
          Creates and returns a new initial population for the evolutionary run.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ec.Setup
setup
 

Field Detail

P_POP

public static final java.lang.String P_POP
parameter for a new population
Constructor Detail

Initializer

public Initializer()
Method Detail

initialPopulation

public abstract Population initialPopulation(EvolutionState state)
Creates and returns a new initial population for the evolutionary run. This is commonly done by creating a Population, setting it up (call setup() on it!), and calling its populate() method. This method will likely only be called once in a run.