Package ec.rule

Class RuleInitializer

All Implemented Interfaces:
Setup, Singleton, 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:
  • Field Details

  • Constructor Details

    • RuleInitializer

      public RuleInitializer()
  • Method Details

    • 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)