Examples of tryNext()


Examples of org.mindswap.pellet.tableau.branch.GuessBranch.tryNext()

          GuessBranch newBranch = new GuessBranch(abox, this, o, pred.getInverse(), guessMin, max,
                          ATermUtils.TOP, ds);
          addBranch(newBranch);

          // try a merge that does not trivially fail
          if (newBranch.tryNext() == false) {
            return;
          }

          if (abox.isClosed()) {
            return;
View Full Code Here

Examples of org.mindswap.pellet.tableau.branch.MaxBranch.tryNext()

        // add the list of possible pairs to be merged in the branch list
        MaxBranch newBranch = new MaxBranch( strategy.getABox(), strategy, x, r, k, c, mergePairs, ds );
        strategy.addBranch( newBranch );

        // try a merge that does not trivially fail
        if( newBranch.tryNext() == false )
            return false;

        if( log.isLoggable( Level.FINE ) )
            log.fine( "hasMore: " + (n > k + 1) );
View Full Code Here

Examples of org.mindswap.pellet.tableau.branch.RuleBranch.tryNext()

      return -1;
    }
    else {   
      RuleBranch r = new RuleBranch( abox, this, ruleAtomAsserter, atoms, binding, bodyAtomCount, ds );
      addBranch( r );
      r.tryNext();
      return r.getBranch();
    }
  }

  @Override
View Full Code Here

Examples of org.mindswap.pellet.tableau.branch.RuleBranch.tryNext()

    if( atoms.size() == bodyAtomCount )
      return;
   
    RuleBranch r = new RuleBranch( abox, this, ruleAtomAsserter, atoms, binding, bodyAtomCount, DependencySet.INDEPENDENT );
    addBranch( r );
    r.tryNext();
  }
 
  @Override
  public void restoreLocal(Individual ind, Branch br) {
    restore( br );
View Full Code Here

Examples of org.mindswap.pellet.tableau.branch.RuleBranch.tryNext()

      return -1;
    }
    else {   
      RuleBranch r = new RuleBranch( abox, this, ruleAtomAsserter, atoms, binding, bodyAtomCount, ds );
      addBranch( r );
      r.tryNext();
      return r.getBranch();
    }
  }

  @Override
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.