Package ec.rule
Class RuleInitializer
java.lang.Object
ec.Initializer
ec.simple.SimpleInitializer
ec.rule.RuleInitializer
- All Implemented Interfaces:
Setup,Singleton,Serializable
A SimpleInitializer subclass designed to be used with rules. Basically,
the RuleInitializer sets up the RuleConstraints and RuleSetConstraints cliques
at setup() time, and does nothing else different from SimpleInitializer.
The RuleInitializer also specifies the parameter bases for the RuleSetConstraints
and RuleConstraints objects.
Parameter bases
| rule.rsc | RuleSetConstraints |
| rule.rc | RuleConstraints |
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionbytebytestatic final Stringstatic final Stringstatic final Stringstatic final intFields inherited from class ec.Initializer
P_POP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetup(EvolutionState state, Parameter base) Sets up the RuleConstraints and RuleSetConstraints cliques.voidsetupConstraints(EvolutionState state, Parameter base) Sets up all the RuleConstraints, loading them from the parameter file.voidsetupRuleSetConstraints(EvolutionState state, Parameter base) Methods inherited from class ec.simple.SimpleInitializer
initialPopulation, setupPopulation
-
Field Details
-
SIZE_OF_BYTE
public static final int SIZE_OF_BYTE- See Also:
-
P_RULESETCONSTRAINTS
- See Also:
-
P_RULECONSTRAINTS
- See Also:
-
P_SIZE
- See Also:
-
ruleConstraintRepository
-
ruleConstraints
-
numRuleConstraints
public byte numRuleConstraints -
ruleSetConstraintRepository
-
ruleSetConstraints
-
numRuleSetConstraints
public byte numRuleSetConstraints
-
-
Constructor Details
-
RuleInitializer
public RuleInitializer()
-
-
Method Details
-
setup
Sets up the RuleConstraints and RuleSetConstraints cliques.- Specified by:
setupin interfaceSetup- Overrides:
setupin classSimpleInitializer
-
setupConstraints
Sets up all the RuleConstraints, loading them from the parameter file. This must be called before anything is called which refers to a type by name. -
setupRuleSetConstraints
-