ec.rule
Class RuleInitializer
java.lang.Object
ec.Initializer
ec.simple.SimpleInitializer
ec.rule.RuleInitializer
- All Implemented Interfaces:
- Setup, Singleton, java.io.Serializable
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
RuleInitializer
public RuleInitializer()
setup
public void setup(EvolutionState state,
Parameter base)
- Sets up the RuleConstraints and RuleSetConstraints cliques.
- Specified by:
setup
in interface Setup
- Overrides:
setup
in class SimpleInitializer
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)