Beispiel #1
0
  /* Create an empty multi rule.
   */
  protected MultiRule createEmptyMultiRule() {
    MultiRule multiRule = new MultiRule(this.kernelRule.getTypeSet());

    multiRule.setEmbeddingLeft(
        new OrdinaryMorphism(
            this.kernelRule.getLeft(),
            multiRule.getLeft(),
            agg.attribute.impl.AttrTupleManager.getDefaultManager()
                .newContext(AttrMapping.PLAIN_MAP)));

    multiRule.setEmbeddingRight(
        new OrdinaryMorphism(
            this.kernelRule.getRight(),
            multiRule.getRight(),
            agg.attribute.impl.AttrTupleManager.getDefaultManager()
                .newContext(AttrMapping.PLAIN_MAP)));

    multiRule.setRuleScheme(this);

    this.multiRules.add(multiRule);

    return multiRule;
  }