|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectec.Species
ec.gp.GPSpecies
public class GPSpecies
GPSpecies is a simple individual which is suitable as a species for GP subpopulations. GPSpecies' individuals must be GPIndividuals, and often their pipelines are GPBreedingPipelines (at any rate, the pipelines will have to return members of GPSpecies!).
Default Base
gp.species
Field Summary | |
---|---|
static java.lang.String |
P_GPSPECIES
|
Fields inherited from class ec.Species |
---|
f_prototype, i_prototype, P_FITNESS, P_INDIVIDUAL, P_PIPE, pipe_prototype |
Constructor Summary | |
---|---|
GPSpecies()
|
Method Summary | |
---|---|
Parameter |
defaultBase()
Returns the default base for this prototype. |
Individual |
newIndividual(EvolutionState state,
java.io.DataInput dataInput)
Provides an individual read from a DataInput source, including the fitness. |
Individual |
newIndividual(EvolutionState state,
int thread)
Provides a brand-new individual to fill in a population. |
Individual |
newIndividual(EvolutionState state,
java.io.LineNumberReader reader)
Provides an individual read from a stream, including the fitness; the individual will appear as it was written by printIndividual(...). |
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.Species |
---|
clone |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String P_GPSPECIES
Constructor Detail |
---|
public GPSpecies()
Method Detail |
---|
public Parameter defaultBase()
Prototype
public void setup(EvolutionState state, Parameter base)
Species
setup
in interface Prototype
setup
in interface Setup
setup
in class Species
Prototype.setup(EvolutionState,Parameter)
public Individual newIndividual(EvolutionState state, int thread)
Species
newIndividual
in class Species
public Individual newIndividual(EvolutionState state, java.io.LineNumberReader reader) throws java.io.IOException
Species
newIndividual
in class Species
java.io.IOException
public Individual newIndividual(EvolutionState state, java.io.DataInput dataInput) throws java.io.IOException
Species
newIndividual
in class Species
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |