ec.rule
Class RuleSpecies
- java.lang.Object
-
- ec.Species
-
- ec.rule.RuleSpecies
-
public class RuleSpecies extends Species
RuleSpecies is a simple individual which is suitable as a species for rule sets subpopulations. RuleSpecies' individuals must be RuleIndividuals, and often their pipelines are RuleBreedingPipelines (at any rate, the pipelines will have to return members of RuleSpecies!).Default Base
rule.species- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringP_RULESPECIES-
Fields inherited from class ec.Species
f_prototype, i_prototype, P_FITNESS, P_INDIVIDUAL, P_PIPE, pipe_prototype
-
-
Constructor Summary
Constructors Constructor and Description RuleSpecies()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description ParameterdefaultBase()Returns the default base for this prototype.IndividualnewIndividual(EvolutionState state, int thread)Provides a brand-new individual to fill in a population.voidsetup(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, newIndividual, newIndividual
-
-
-
-
Field Detail
-
P_RULESPECIES
public static final java.lang.String P_RULESPECIES
- See Also:
- Constant Field Values
-
-
Method Detail
-
defaultBase
public Parameter defaultBase()
Description copied from interface:PrototypeReturns 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(...).
-
setup
public void setup(EvolutionState state, Parameter base)
Description copied from class:SpeciesThe 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.
-
newIndividual
public Individual newIndividual(EvolutionState state, int thread)
Description copied from class:SpeciesProvides a brand-new individual to fill in a population. The default form simply calls clone(), creates a fitness, sets evaluated to false, and sets the species. If you need to make a more custom genotype (as is the case for GPSpecies, which requires a light rather than deep clone), you will need to override this method as you see fit.- Overrides:
newIndividualin classSpecies
-
-
DMelt 3.0 © DataMelt by jWork.ORG