ec.vector
Class GeneVectorSpecies

java.lang.Object
  extended by ec.Species
      extended by ec.vector.VectorSpecies
          extended by ec.vector.GeneVectorSpecies
All Implemented Interfaces:
Prototype, Setup, java.io.Serializable, java.lang.Cloneable

public class GeneVectorSpecies
extends VectorSpecies

GeneVectorSpecies is a subclass of VectorSpecies with special constraints for GeneVectorIndividuals.

At present there is exactly one item stored in GeneVectorSpecies: the prototypical VectorGene that populates the genome array stored in a GeneVectorIndividual.

Version:
1.0

Parameters

gene
classname, inherits and != ec.VectorGene
(the prototypical gene for this kind of individual)

Parameter bases

base.gene The prototypical gene for this kind of individual
Author:
Sean Luke
See Also:
Serialized Form

Field Summary
 VectorGene genePrototype
           
static java.lang.String P_GENE
           
 
Fields inherited from class ec.vector.VectorSpecies
C_ANY_POINT, C_ONE_POINT, C_TWO_POINT, chunksize, crossoverProbability, crossoverType, genomeSize, mutationProbability, P_CHUNKSIZE, P_CROSSOVERPROB, P_CROSSOVERTYPE, P_GENOMESIZE, P_MUTATIONPROB, P_VECTORSPECIES, V_ANY_POINT, V_ONE_POINT, V_TWO_POINT
 
Fields inherited from class ec.Species
f_prototype, i_prototype, P_FITNESS, P_INDIVIDUAL, P_PIPE, pipe_prototype
 
Constructor Summary
GeneVectorSpecies()
           
 
Method Summary
 void setup(EvolutionState state, Parameter base)
          The default version of setup(...) loads requested pipelines and calls setup(...) on them and normalizes their probabilities.
 
Methods inherited from class ec.vector.VectorSpecies
defaultBase, newIndividual
 
Methods inherited from class ec.Species
clone, newIndividual, newIndividual
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

P_GENE

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

genePrototype

public VectorGene genePrototype
Constructor Detail

GeneVectorSpecies

public GeneVectorSpecies()
Method Detail

setup

public void setup(EvolutionState state,
                  Parameter base)
Description copied from class: Species
The default version of setup(...) loads requested pipelines and calls setup(...) on them and normalizes their probabilities. If your individual prototype might need to know special things about the species (like parameters stored in it), then when you override this setup method, you'll need to set those parameters BEFORE you call super.setup(...), because the setup(...) code in Species sets up the prototype.

Specified by:
setup in interface Prototype
Specified by:
setup in interface Setup
Overrides:
setup in class VectorSpecies
See Also:
Prototype.setup(EvolutionState,Parameter)