edu.cs.ai.kreator.ui.gui.components.controller
Class OutlineKnowledgebaseWorker

java.lang.Object
  extended by javax.swing.SwingWorker<T,KreatorWorker.Status>
      extended by edu.cs.ai.kreator.control.KreatorWorker<java.lang.Void>
          extended by edu.cs.ai.kreator.control.EventKreatorWorker
              extended by edu.cs.ai.kreator.ui.gui.components.controller.OutlineWorker
                  extended by edu.cs.ai.kreator.ui.gui.components.controller.OutlineKnowledgebaseWorker
All Implemented Interfaces:
java.lang.Runnable, java.util.concurrent.Future<java.lang.Void>, java.util.concurrent.RunnableFuture<java.lang.Void>

public class OutlineKnowledgebaseWorker
extends OutlineWorker

Worker class: Calculates an outline tree for a given knowledge base file.

Author:
Tim Janus

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.cs.ai.kreator.control.EventKreatorWorker
EventKreatorWorker.WorkerDispatcher
 
Nested classes/interfaces inherited from class edu.cs.ai.kreator.control.KreatorWorker
KreatorWorker.Status
 
Nested classes/interfaces inherited from class javax.swing.SwingWorker
javax.swing.SwingWorker.StateValue
 
Field Summary
 
Fields inherited from class edu.cs.ai.kreator.ui.gui.components.controller.OutlineWorker
lastParsingException, treeModel
 
Fields inherited from class edu.cs.ai.kreator.control.KreatorWorker
LOG
 
Constructor Summary
OutlineKnowledgebaseWorker(KnowledgebaseFile kbf, EventKreatorWorker.WorkerDispatcher dispatcher)
          Ctor
 
Method Summary
protected  java.lang.Void myDoInBackground()
          Parse the knowledge base file and generate the outline tree to represent the content of the file.
 
Methods inherited from class edu.cs.ai.kreator.ui.gui.components.controller.OutlineWorker
getTreeModel, showParsingError
 
Methods inherited from class edu.cs.ai.kreator.control.EventKreatorWorker
done
 
Methods inherited from class edu.cs.ai.kreator.control.KreatorWorker
doInBackground, forceKill, forceResume, forceSuspend, getConsole, getStatus, myDone, pleaseAbort, pleaseWait, process, publish, resetShouldAbort, resume, shouldAbort, shouldWait
 
Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, publish, removePropertyChangeListener, run, setProgress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutlineKnowledgebaseWorker

public OutlineKnowledgebaseWorker(KnowledgebaseFile kbf,
                                  EventKreatorWorker.WorkerDispatcher dispatcher)
Ctor

Parameters:
kbf - reference to the knowledge base file
dispatcher - reference to the work dispatcher
Method Detail

myDoInBackground

protected java.lang.Void myDoInBackground()
                                   throws AbortedExecutionException
Parse the knowledge base file and generate the outline tree to represent the content of the file.

Overrides:
myDoInBackground in class OutlineWorker
Returns:
Throws:
AbortedExecutionException