jcreek.cke.importexport.jcxml
Class JCXMLimport

java.lang.Object
  extended byjava.lang.Thread
      extended byjcreek.cke.importexport.jcxml.JCXMLimport
All Implemented Interfaces:
ProcessControlInterface, java.lang.Runnable

public class JCXMLimport
extends java.lang.Thread
implements ProcessControlInterface

This class is the one having the overall control of the import process of JCXML files to the Knowledge Model of Creek.

Author:
Stein L. Tomassen, NTNU 2002

Nested Class Summary
protected  class JCXMLimport.ImportThread
          This class contains the different stages of the import process.
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
JCXMLimport(java.awt.Frame parent, KnowledgeModel km)
          Constructor for JCXMLimport, which sets some basic settings.
 
Method Summary
 void abortProcess()
          Aborts the import process.
 boolean isAborted()
          Checks if the process was aborted;
 void startImport()
          Starts the process by first showing the FileChooser dialog then starts the import process, by first starting the thread and gives feedback of the process to the JCXML status dialog.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JCXMLimport

public JCXMLimport(java.awt.Frame parent,
                   KnowledgeModel km)
Constructor for JCXMLimport, which sets some basic settings.

Parameters:
parent - the parent frame window.
km - the JavaCreek knowledge model to import the model to.
Method Detail

isAborted

public boolean isAborted()
Checks if the process was aborted;

Returns:
true if the porcess was aborted, otherwise false.

startImport

public void startImport()
Starts the process by first showing the FileChooser dialog then starts the import process, by first starting the thread and gives feedback of the process to the JCXML status dialog.


abortProcess

public void abortProcess()
Aborts the import process. This is the implementation of the method from 'ProcessControlInterface'. This method could be used by other classes to abort a process.

Specified by:
abortProcess in interface ProcessControlInterface


Created at IDI, NTNU by the Artificial Intelligence and Learning group