public void taskFinished() { timer.stop(); }
public void taskFinished() { timer.stop(); }
public void stopTimer(String name) { Timer t = getTimer(name); if (t == null) throw new UnsupportedOperationException("Timer " + name + " does not exist!"); t.stop(); }
public void stopTimer(String name) { Timer t = getTimer(name); if (t == null) throw new UnsupportedOperationException("Timer " + name + " does not exist!"); t.stop(); }
private void incrementalClassify() { if( log.isLoggable( Level.FINE ) ) { log.fine( "Incremental classification starting" ); } Timer timer = timers.startTimer( "incrementalClassify" ); incClassifyAllModStrategy(); timer.stop(); if( log.isLoggable( Level.FINE ) ) { log.fine( "Incremental classification done" ); } }
/** * If started stop the timer and then start it again. */ public void restart() { if( isStarted() ) stop(); start(); }
/** * If started stop the timer and then start it again. */ public void restart() { if( isStarted() ) stop(); start(); }
public Collection<PartialBinding> applyRete() { Timer t; if( PelletOptions.ALWAYS_REBUILD_RETE ) { t = timers.startTimer( "rule-rebuildRete" ); partialBindings.clear(); partialBindings.addAll(unsafeRules); interpreter.reset(); t.stop(); } t = timers.startTimer( "rule-reteRun" ); interpreter.run(); t.stop(); return interpreter.getBindings(); }
/** * {@inheritDoc} */ public QueryResult exec(Query query) { if( log.isLoggable( Level.FINE ) ) { log.fine( "Executing query " + query ); } Timer timer = new Timer( "CombinedQueryEngine" ); timer.start(); prepare( query ); branches = 0; exec( new ResultBindingImpl() ); timer.stop(); if( log.isLoggable( Level.FINE ) ) { log.log( Level.FINE, "#B=" + branches + ", time=" + timer.getLast() + " ms." ); } return result; }
public void classify() { ensureConsistency(); if( isClassified() ) return; if( log.isLoggable( Level.FINE ) ) log.fine( "Classifying..." ); Timer timer = timers.startTimer( "classify" ); builder = getTaxonomyBuilder(); boolean isClassified = builder.classify(); timer.stop(); if( !isClassified ) return; state.add( ReasoningState.CLASSIFY ); estimate.computKBCosts(); }
public void classify() { ensureConsistency(); if( isClassified() ) return; if( log.isLoggable( Level.FINE ) ) log.fine( "Classifying..." ); Timer timer = timers.startTimer( "classify" ); builder = getTaxonomyBuilder(); boolean isClassified = builder.classify(); timer.stop(); if( !isClassified ) return; state.add( ReasoningState.CLASSIFY ); estimate.computKBCosts(); }
public boolean isDirectlyBlocked(Individual blocked) { Timer t = blocked.getABox().getKB().timers.startTimer( "dBlocking" ); try { return isDirectlyBlockedInt( blocked ); } finally { t.stop(); } }
public boolean isDirectlyBlocked(Individual blocked) { Timer t = blocked.getABox().getKB().timers.startTimer( "dBlocking" ); try { return isDirectlyBlockedInt( blocked ); } finally { t.stop(); } }
public void load(Set<OWLOntology> ontologies) { Timer timer = kb.timers.startTimer( "load" ); int axiomCount = 0; Collection<OWLOntology> toBeLoaded = new LinkedHashSet<OWLOntology>(); for( OWLOntology ontology : ontologies ) axiomCount += load( ontology, false, toBeLoaded ); visitor.reset(); visitor.setAddAxiom( true ); for( OWLOntology ontology : toBeLoaded ) ontology.accept( visitor ); visitor.verify(); timer.stop(); }
public void load(Set<OWLOntology> ontologies) { Timer timer = kb.timers.startTimer( "load" ); int axiomCount = 0; Collection<OWLOntology> toBeLoaded = new LinkedHashSet<OWLOntology>(); for( OWLOntology ontology : ontologies ) axiomCount += load( ontology, false, toBeLoaded ); visitor.reset(); visitor.setAddAxiom( true ); for( OWLOntology ontology : toBeLoaded ) ontology.accept( visitor ); visitor.verify(); timer.stop(); }
public void realize() { if( isRealized() ) return; classify(); if( !isClassified() ) return; Timer timer = timers.startTimer( "realize" ); // This is false if the progress monitor is canceled boolean isRealized = builder.realize(); timer.stop(); if( !isRealized ) return; state.add( ReasoningState.REALIZE ); estimate.computKBCosts(); }
public void realize() { if( isRealized() ) return; classify(); if( !isClassified() ) return; Timer timer = timers.startTimer( "realize" ); // This is false if the progress monitor is canceled boolean isRealized = builder.realize(); timer.stop(); if( !isRealized ) return; state.add( ReasoningState.REALIZE ); estimate.computKBCosts(); }
public boolean isBlocked(Individual blocked) { Timer t = blocked.getABox().getKB().timers.startTimer( "blocking" ); try { return !blocked.isRoot() && (isIndirectlyBlocked( blocked ) || isDirectlyBlockedInt( blocked )); } finally { t.stop(); } }
public boolean isBlocked(Individual blocked) { Timer t = blocked.getABox().getKB().timers.startTimer( "blocking" ); try { return !blocked.isRoot() && (isIndirectlyBlocked( blocked ) || isDirectlyBlockedInt( blocked )); } finally { t.stop(); } }
/** * {@inheritDoc} */ public void load(Iterable<Graph> graphs) throws UnsupportedFeatureException { Timer timer = kb.timers.startTimer( "load" ); monitor.setProgressTitle( "Loading" ); monitor.taskStarted(); graph = EMPTY_GRAPH; preprocess(); for (Graph g : graphs) { graph = g; processTypes(); } for (Graph g : graphs) { graph = g; processTriples(); } processUntypedResources(); monitor.taskFinished(); timer.stop(); }