org.semanticweb.elk.reasoner.stages
Class RestartingStageExecutor

java.lang.Object
  extended by org.semanticweb.elk.util.concurrent.computation.SimpleInterrupter
      extended by org.semanticweb.elk.reasoner.stages.RestartingStageExecutor
All Implemented Interfaces:
ReasonerStageExecutor, Interrupter

public class RestartingStageExecutor
extends SimpleInterrupter
implements ReasonerStageExecutor

A ReasonerStageExecutor which refuses to interrupt: it will restart any interrupted stage.

Author:
"Yevgeny Kazakov"

Constructor Summary
RestartingStageExecutor()
           
 
Method Summary
 void complete(ReasonerStage stage)
          Makes sure that the given stage is completed; it might not necessarily execute this stage if the results are already computed
 
Methods inherited from class org.semanticweb.elk.util.concurrent.computation.SimpleInterrupter
clearInterrupt, clearThreadToInterrupt, interrupt, isInterrupted, registerCurrentThreadToInterrupt, registerThreadToInterrupt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.semanticweb.elk.util.concurrent.computation.Interrupter
clearInterrupt, interrupt, isInterrupted
 

Constructor Detail

RestartingStageExecutor

public RestartingStageExecutor()
Method Detail

complete

public void complete(ReasonerStage stage)
              throws ElkException
Description copied from interface: ReasonerStageExecutor
Makes sure that the given stage is completed; it might not necessarily execute this stage if the results are already computed

Specified by:
complete in interface ReasonerStageExecutor
Parameters:
stage - the reasoner stage to be completed
Throws:
ElkException - if the stage cannot be competed successfully


Copyright © 2011-2013 Department of Computer Science, University of Oxford. All Rights Reserved.