ec.rule
Class RuleInitializer

java.lang.Object
  extended by ec.Initializer
      extended by ec.simple.SimpleInitializer
          extended by 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

Field Summary
 byte numRuleConstraints
           
 byte numRuleSetConstraints
           
static java.lang.String P_RULECONSTRAINTS
           
static java.lang.String P_RULESETCONSTRAINTS
           
static java.lang.String P_SIZE
           
 java.util.Hashtable ruleConstraintRepository
           
 RuleConstraints[] ruleConstraints
           
 java.util.Hashtable ruleSetConstraintRepository
           
 RuleSetConstraints[] ruleSetConstraints
           
static int SIZE_OF_BYTE
           
 
Fields inherited from class ec.Initializer
P_POP
 
Constructor Summary
RuleInitializer()
           
 
Method Summary
 void setup(EvolutionState state, Parameter base)
          Sets up the RuleConstraints and RuleSetConstraints cliques.
 void setupConstraints(EvolutionState state, Parameter base)
          Sets up all the RuleConstraints, loading them from the parameter file.
 void setupRuleSetConstraints(EvolutionState state, Parameter base)
           
 
Methods inherited from class ec.simple.SimpleInitializer
initialPopulation, setupPopulation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

RuleInitializer

public RuleInitializer()
Method Detail

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)