Package org.mindswap.pellet.utils

Examples of org.mindswap.pellet.utils.Timer


    verbose( "Start " + task );   
    timers.startTimer( task );   
 
 
  protected void finishTask(String task) {
    Timer timer = timers.getTimer( task );
    timer.stop();
    verbose( "Finished " + task + " in " + timer.format() );
  }
View Full Code Here


    MultipleExplanationGenerator expGen = new HSTExplanationGenerator(getSingleExplanationGenerator());
    RendererExplanationProgressMonitor rendererMonitor = new RendererExplanationProgressMonitor(axiom);
    expGen.setProgressMonitor(rendererMonitor);

    OWLClassExpression unsatClass = converter.convert( axiom );
    Timer timer = timers.startTimer("explain");
    Set<Set<OWLAxiom>> explanations = expGen.getExplanations( unsatClass, maxExplanations );
    timer.stop();

    if (explanations.isEmpty()) {
      rendererMonitor.foundNoExplanations();
    }
   
    if( timer.getCount() % 10 == 0 ) {
      // printStatistics();
    }

    int expSize = explanations.size();
    if( expSize == 0 ) {
View Full Code Here

  private void printStatistics() throws OWLException {
    if(!verbose) {
          return;
        }
   
    Timer timer = timers.getTimer( "explain" );
    if( timer != null ) {
      verbose( "Subclass relations   : " + timer.getCount() );
      verbose( "Multiple explanations: " + multipleExpCount );
      verbose( "Single explanation     " );
      verbose( " with multiple axioms: " + multiAxiomExpCount );
      verbose( "Error explaining     : " + errorExpCount );
      verbose( "Average time         : " + timer.getAverage() + "ms" );
    }
  }
View Full Code Here

TOP

Related Classes of org.mindswap.pellet.utils.Timer

Copyright © 2018 www.massapicom. 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.