com.bbn.swede.editor.visualeditors.restriction
Class QueryJob

java.lang.Object
  extended byJob
      extended bycom.bbn.swede.editor.visualeditors.restriction.QueryJob

public abstract class QueryJob
extends Job

A subclass of Job that performs a computation and makes the result of that computation available via a call to getQueryResult().

Author:
aperezlo
See Also:
Serialized Form

Constructor Summary
protected QueryJob()
          Creates a query job with the name "QueryJob".
 
Method Summary
 Object getQueryResult()
          Returns the result of the query - this method blocks until processing is complete.
protected abstract  Object run()
          This method must be overrided by subclasses to perform the operations desired by this QueryJob.
protected  IStatus run(IProgressMonitor monitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryJob

protected QueryJob()
Creates a query job with the name "QueryJob".

Method Detail

getQueryResult

public Object getQueryResult()
Returns the result of the query - this method blocks until processing is complete.

Returns:
the result of the query

run

protected abstract Object run()
This method must be overrided by subclasses to perform the operations desired by this QueryJob.

Returns:
an Object representing the results of the computation

run

protected IStatus run(IProgressMonitor monitor)


Copyright © 2004-2005 BBN Technologies. All Rights Reserved.