Beispiel #1
0
 /**
  * Replicate new rule mapping of the kernel rule.
  *
  * @param leftgo graph object of the LHS of the kernel rule
  * @param rightgo graph object of the RHS of the kernel rule
  * @throws BadMappingException
  */
 public void propagateAddRuleMappingToMultiRule(
     final GraphObject leftgo, final GraphObject rightgo) throws BadMappingException {
   for (int i = 0; i < this.multiRules.size(); i++) {
     final MultiRule multiRule = (MultiRule) this.multiRules.get(i);
     try {
       GraphObject objL = multiRule.getEmbeddingLeft().getImage(leftgo);
       GraphObject objR = multiRule.getEmbeddingRight().getImage(rightgo);
       if (objL != null && objR != null) multiRule.addMapping(objL, objR);
     } catch (BadMappingException ex) {
       System.out.println(
           "RuleScheme.propagateCreatedMappingToMultiRule: " + ex.getLocalizedMessage());
       throw ex;
     }
   }
 }