ec.rule
Class RuleInitializer
- java.lang.Object
-
- ec.Initializer
-
- ec.simple.SimpleInitializer
-
- ec.rule.RuleInitializer
-
public class RuleInitializer extends SimpleInitializer
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description bytenumRuleConstraintsbytenumRuleSetConstraintsstatic java.lang.StringP_RULECONSTRAINTSstatic java.lang.StringP_RULESETCONSTRAINTSstatic java.lang.StringP_SIZEjava.util.HashtableruleConstraintRepositoryRuleConstraints[]ruleConstraintsjava.util.HashtableruleSetConstraintRepositoryRuleSetConstraints[]ruleSetConstraintsstatic intSIZE_OF_BYTE-
Fields inherited from class ec.Initializer
P_POP
-
-
Constructor Summary
Constructors Constructor and Description RuleInitializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidsetup(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 Detail
-
SIZE_OF_BYTE
public static final int SIZE_OF_BYTE
- See Also:
- Constant Field Values
-
P_RULESETCONSTRAINTS
public static final java.lang.String P_RULESETCONSTRAINTS
- See Also:
- Constant Field Values
-
P_RULECONSTRAINTS
public static final java.lang.String P_RULECONSTRAINTS
- See Also:
- Constant Field Values
-
P_SIZE
public static final java.lang.String P_SIZE
- See Also:
- Constant Field Values
-
ruleConstraintRepository
public java.util.Hashtable ruleConstraintRepository
-
ruleConstraints
public RuleConstraints[] ruleConstraints
-
numRuleConstraints
public byte numRuleConstraints
-
ruleSetConstraintRepository
public java.util.Hashtable ruleSetConstraintRepository
-
ruleSetConstraints
public RuleSetConstraints[] ruleSetConstraints
-
numRuleSetConstraints
public byte numRuleSetConstraints
-
-
Method Detail
-
setup
public void setup(EvolutionState state, Parameter base)
Sets up the RuleConstraints and RuleSetConstraints cliques.- Specified by:
setupin interfaceSetup- Overrides:
setupin classSimpleInitializer
-
setupConstraints
public void setupConstraints(EvolutionState state, Parameter base)
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
public void setupRuleSetConstraints(EvolutionState state, Parameter base)
-
-
DMelt 3.0 © DataMelt by jWork.ORG