Examples of tryNext()


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

            if( unexploredBranch.getTryNext() < unexploredBranch.getTryCount() ) {
              restore( unexploredBranch );
              System.out.println( "restoring branch " + unexploredBranch.getBranch()
                  + " tryNext = " + unexploredBranch.getTryNext()
                  + " tryCount = " + unexploredBranch.getTryCount() );
              unexploredBranch.tryNext();
              break;
            }
            else {
              System.out.println( "removing branch " + unexploredBranch.getBranch() );
              abox.getBranches().remove( i );
View Full Code Here

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

        // undo the changes done after this branch
        restore( newBranch );
      }

      // try the next possibility
      branchFound = newBranch.tryNext();

      if( !branchFound ) {
        if( log.isLoggable( Level.FINE ) )
          log.fine( "FAIL: Branch " + lastBranch );
      }
View Full Code Here

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

            if( unexploredBranch.getTryNext() < unexploredBranch.getTryCount() ) {
              restore( unexploredBranch );
              System.out.println( "restoring branch " + unexploredBranch.getBranch()
                  + " tryNext = " + unexploredBranch.getTryNext()
                  + " tryCount = " + unexploredBranch.getTryCount() );
              unexploredBranch.tryNext();
              break;
            }
            else {
              System.out.println( "removing branch " + unexploredBranch.getBranch() );
              abox.getBranches().remove( i );
View Full Code Here

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

        newBranch.setTryNext( newBranch.getTryNext() + 1 );

        if( newBranch.getTryNext() < newBranch.getTryCount() ) {
          restore( newBranch );

          branchFound = newBranch.tryNext();
        }
      }

      if( !branchFound ) {
        abox.getClash().getDepends().remove( lastBranch );
View Full Code Here

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

            if( unexploredBranch.getTryNext() < unexploredBranch.getTryCount() ) {
              restore( unexploredBranch );
              System.out.println( "restoring branch " + unexploredBranch.getBranch()
                  + " tryNext = " + unexploredBranch.getTryNext() + " tryCount = "
                  + unexploredBranch.getTryCount() );
              unexploredBranch.tryNext();
              break;
            }
            else {
              System.out.println( "removing branch " + unexploredBranch.getBranch() );
              abox.getBranches().remove( i );
View Full Code Here

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

            if( unexploredBranch.getTryNext() < unexploredBranch.getTryCount() ) {
              restore( unexploredBranch );
              System.out.println( "restoring branch " + unexploredBranch.getBranch()
                  + " tryNext = " + unexploredBranch.getTryNext()
                  + " tryCount = " + unexploredBranch.getTryCount() );
              unexploredBranch.tryNext();
              break;
            }
            else {
              System.out.println( "removing branch " + unexploredBranch.getBranch() );
              abox.getBranches().remove( i );
View Full Code Here

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

            if( !neighbor.hasType( c ) && !neighbor.hasType( ATermUtils.negate( c ) ) ) {
                ChooseBranch newBranch = new ChooseBranch( strategy.getABox(), strategy, neighbor, c, x
                    .getDepends( maxCard ) );
                strategy.addBranch( newBranch );

                newBranch.tryNext();

                if( strategy.getABox().isClosed() )
                    return;
            }
        }     
View Full Code Here

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

    DisjunctionBranch newBranch = new DisjunctionBranch( strategy.getABox(), strategy, node,
        disjunction, node.getDepends( disjunction ), disj );
    strategy.addBranch( newBranch );

    newBranch.tryNext();
  }

}
View Full Code Here

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

    }

    GuessBranch newBranch = new GuessBranch(strategy.getABox(), strategy, x, r, guessMin, n, c, ds);
    strategy.addBranch(newBranch);

    newBranch.tryNext();
  }
}
View Full Code Here

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 edge;
          }

          if (abox.isClosed()) {
            return edge;
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.