edu.stanford.smi.protegex.owl.inference.ui
Class ReasonerActionRunner

java.lang.Object
  extended byedu.stanford.smi.protegex.owl.inference.ui.ReasonerActionRunner

public class ReasonerActionRunner
extends Object

User: matthewhorridge
The Univeristy Of Manchester
Medical Informatics Group
Date: Aug 23, 2004

matthew.horridge@cs.man.ac.uk
www.cs.man.ac.uk/~horridgm

The ReasonerActionRunner can be used to exuecute a number of reasoner actions in a separate worker thread. It will also pop up a dialog with a progress bar and reasoner log.


Nested Class Summary
private  class ReasonerActionRunner.ReasonerLoggerListenerBridge
           
private  class ReasonerActionRunner.ReasonerTaskListenerBridge
           
 
Field Summary
private  boolean journalingEnabled
           
private  RunnableReasonerAction runner
           
private  boolean showClassifierResults
          The progress dialog that will be poped up
 
Constructor Summary
ReasonerActionRunner(RunnableReasonerAction runner, boolean showClassifierResults)
          Constructs a ReasonerActionRunner.
 
Method Summary
 void execute()
          Executes the reasoner actions that are specified in the RunnableReasonerAction's executeReasonerActions method.
protected  void showInferredHierarchy(boolean visible)
          Displays the inferred hierarchy and the classifier results panel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

showClassifierResults

private boolean showClassifierResults
The progress dialog that will be poped up


runner

private RunnableReasonerAction runner

journalingEnabled

private boolean journalingEnabled
Constructor Detail

ReasonerActionRunner

public ReasonerActionRunner(RunnableReasonerAction runner,
                            boolean showClassifierResults)
Constructs a ReasonerActionRunner.

Parameters:
runner - The RunnableReasonerAction that specifies the code to be executed by this ReasonerActionRunner
showClassifierResults - If true the classification results panel will be displayed after the reasone actions have been executed.
Method Detail

execute

public void execute()
Executes the reasoner actions that are specified in the RunnableReasonerAction's executeReasonerActions method. This will execute the actions is a worker thread and pop up a progress dialog.


showInferredHierarchy

protected void showInferredHierarchy(boolean visible)
Displays the inferred hierarchy and the classifier results panel.

Parameters:
visible -