ec.vector
Class VectorSpecies

java.lang.Object
  |
  +--ec.Species
        |
        +--ec.vector.VectorSpecies
All Implemented Interfaces:
java.lang.Cloneable, Prototype, java.io.Serializable, Setup

public class VectorSpecies
extends Species

VectorSpecies is a species which can create VectorIndividuals.

Default Base
vector.species

See Also:
Serialized Form

Field Summary
static java.lang.String P_VECTORSPECIES
           
 
Fields inherited from class ec.Species
i_prototype, P_INDIVIDUAL, P_PIPE, pipe_prototype
 
Constructor Summary
VectorSpecies()
           
 
Method Summary
 Parameter defaultBase()
          Returns the default base for this prototype.
 Individual newIndividual(EvolutionState state, Subpopulation _population, Fitness _fitness)
          override this to provide a brand-new individual to fill in a population.
 Individual newIndividual(EvolutionState state, Subpopulation _population, Fitness _fitness, java.io.LineNumberReader reader)
          Override this to provide an individual read from a file; the individual will appear as it was written by printIndividual(...).
 
Methods inherited from class ec.Species
protoClone, protoCloneSimple, setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

P_VECTORSPECIES

public static final java.lang.String P_VECTORSPECIES
Constructor Detail

VectorSpecies

public VectorSpecies()
Method Detail

defaultBase

public Parameter defaultBase()
Description copied from interface: Prototype
Returns the default base for this prototype. This should generally be implemented by building off of the static base() method on the DefaultsForm object for the prototype's package. This should be callable during setup(...).

newIndividual

public Individual newIndividual(EvolutionState state,
                                Subpopulation _population,
                                Fitness _fitness)
                         throws java.lang.CloneNotSupportedException
Description copied from class: Species
override this to provide a brand-new individual to fill in a population. The CloneNotSupportedException permits you to use protoClone() rather than protoCloneSimple(), for efficiency gains. It's assumed that the thread is thread 0.
Overrides:
newIndividual in class Species

newIndividual

public Individual newIndividual(EvolutionState state,
                                Subpopulation _population,
                                Fitness _fitness,
                                java.io.LineNumberReader reader)
                         throws java.io.IOException,
                                java.lang.CloneNotSupportedException
Description copied from class: Species
Override this to provide an individual read from a file; the individual will appear as it was written by printIndividual(...). You should read and set up the fitness as well. Don't close the file.
Overrides:
newIndividual in class Species