ec.vector
Class GeneVectorSpecies
java.lang.Object
|
+--ec.Species
|
+--ec.vector.VectorSpecies
|
+--ec.vector.GeneVectorSpecies
- All Implemented Interfaces:
- java.lang.Cloneable, Prototype, java.io.Serializable, Setup
- 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.
- See Also:
- Serialized Form
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 |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
P_GENE
public static final java.lang.String P_GENE
genePrototype
public VectorGene genePrototype
GeneVectorSpecies
public GeneVectorSpecies()
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.
- Overrides:
setup
in class VectorSpecies
- Following copied from class:
ec.Species
- See Also:
Prototype.setup(EvolutionState,Parameter)