Package org.mindswap.pellet

Examples of org.mindswap.pellet.Node.restore()


            log.finest( "--- Do not cache concept " + c + " " + x + " "
                + clashNode + " " + clashPath );
        }
      }
      else {
        node.restore( br.getBranch() );

        // FIXME should we look at the clash path or clash node
        if( node.equals( clashNode ) ) {
          cachedNodes.remove( node );
        }
View Full Code Here


          continue;
        }

        if (succ.isLiteral()) {
          visited.put(succ, Boolean.FALSE);
          succ.restore(branch);
        }
        else {
          restoreLocal(((Individual) succ), branch, visited);
        }
      }
View Full Code Here

          deleteBlock = 0;
        }

        // restore only if not tracking branch effects
        if (!PelletOptions.TRACK_BRANCH_EFFECTS) {
          node.restore(br.getBranch());
        }
      }
    }

    // if there were nodes to be removed at the end of the list do it now
View Full Code Here

      // when tracking branch effects only restore nodes explicitly stored in the effected list
      Set<ATermAppl> effected = abox.getBranchEffectTracker().removeAll(br.getBranch() + 1);
      for (ATermAppl a : effected) {
        Node n = abox.getNode(a);
        if (n != null) {
          n.restore(br.getBranch());
        }
      }
    }

    restoreAllValues();
View Full Code Here

            // do not restore if we find the problem without adding the concepts
            if(abox.isClosed()) {
              if( node.isLiteral() ) {
                abox.setClash( null );
               
                node.restore( branch );                             
              }
              else {
              // restoring a single node is not enough here because one of the disjuncts could be an
                // all(r,C) that changed the r-neighbors
                  strategy.restoreLocal((Individual) node, this);
View Full Code Here

          continue;
        }

        if (succ.isLiteral()) {
          visited.put(succ, Boolean.FALSE);
          succ.restore(branch);
        }
        else {
          restoreLocal(((Individual) succ), branch, visited);
        }
      }
View Full Code Here

          deleteBlock = 0;
        }

        // restore only if not tracking branch effects
        if (!PelletOptions.TRACK_BRANCH_EFFECTS) {
          node.restore(br.getBranch());
        }
      }
    }

    // if there were nodes to be removed at the end of the list do it now
View Full Code Here

      // when tracking branch effects only restore nodes explicitly stored in the effected list
      Set<ATermAppl> effected = abox.getBranchEffectTracker().removeAll(br.getBranch() + 1);
      for (ATermAppl a : effected) {
        Node n = abox.getNode(a);
        if (n != null) {
          n.restore(br.getBranch());
        }
      }
    }

    restoreAllValues();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.