예제 #1
0
  /**
   * Create new rule scheme with the given kernel rule. The typeSet of this RuleScheme is the
   * TypeSet of the KernelRule.
   */
  public RuleScheme(final String aSchemeName, KernelRule kernel) {
    super(kernel.getTypeSet());
    super.trimToSize();

    this.itsName = aSchemeName;
    this.schemeName = aSchemeName;

    this.kernelRule = kernel;
    this.kernelRule.setRuleScheme(this);

    //		this.kernelRule.getLeft().addObserver(this);
    //		this.kernelRule.getRight().addObserver(this);
  }
예제 #2
0
  /**
   * Create new rule scheme with an empty kernel rule and empty set of multi rules.
   *
   * @param aSchemeName
   * @param types
   */
  public RuleScheme(final String aSchemeName, TypeSet types) {
    super(types);
    super.trimToSize();

    this.itsName = aSchemeName;
    this.schemeName = aSchemeName;

    this.kernelRule = new KernelRule(types);
    this.kernelRule.setRuleScheme(this);

    //		this.kernelRule.getLeft().addObserver(this);
    //		this.kernelRule.getRight().addObserver(this);
  }