edu.iastate.metnet.ui
Class CompileWorker

java.lang.Object
  extended by EDU.oswego.cs.dl.util.concurrent.ThreadFactoryUser
      extended by edu.iastate.metnet.utils.SwingWorker2
          extended by edu.iastate.metnet.ui.CompileWorker
All Implemented Interfaces:
java.lang.Runnable

public class CompileWorker
extends SwingWorker2

network compilation thread

Author:
Jie Li

Nested Class Summary
 
Nested classes/interfaces inherited from class EDU.oswego.cs.dl.util.concurrent.ThreadFactoryUser
EDU.oswego.cs.dl.util.concurrent.ThreadFactoryUser.DefaultThreadFactory
 
Field Summary
(package private)  java.util.Vector alignmentSink
          alignment result sinker, should from the parent window
(package private)  org._3pq.jgrapht.DirectedGraph directedGraph
          query graph
(package private)  java.util.Collection pbidList
          compilation list
 
Fields inherited from class EDU.oswego.cs.dl.util.concurrent.ThreadFactoryUser
threadFactory_
 
Constructor Summary
CompileWorker(java.util.Collection pbidList, org._3pq.jgrapht.DirectedGraph directedGraph, java.util.Vector sink)
          XXX !!! to prevent any conflict, using deepCopy to send the parameter except the sink
 
Method Summary
protected  java.lang.Object construct()
          call remote compilation
protected  void finished()
          save the result to main sink
 
Methods inherited from class edu.iastate.metnet.utils.SwingWorker2
get, getException, getTimeout, interrupt, isReady, run, start, timedGet
 
Methods inherited from class EDU.oswego.cs.dl.util.concurrent.ThreadFactoryUser
getThreadFactory, setThreadFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

alignmentSink

java.util.Vector alignmentSink
alignment result sinker, should from the parent window


pbidList

java.util.Collection pbidList
compilation list


directedGraph

org._3pq.jgrapht.DirectedGraph directedGraph
query graph

Constructor Detail

CompileWorker

public CompileWorker(java.util.Collection pbidList,
                     org._3pq.jgrapht.DirectedGraph directedGraph,
                     java.util.Vector sink)
XXX !!! to prevent any conflict, using deepCopy to send the parameter except the sink

Parameters:
pbidList - the pathway blockid list
directedGraph - the directed graph
sink - the result sink
Method Detail

construct

protected java.lang.Object construct()
                              throws java.lang.InterruptedException
call remote compilation

Specified by:
construct in class SwingWorker2
Throws:
java.lang.InterruptedException

finished

protected void finished()
save the result to main sink

Overrides:
finished in class SwingWorker2