|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.cone.ConeMatcher.ConeWorker
public static class ConeMatcher.ConeWorker
Object which produces the result table. It performs the individual cone searches and writes the results down a pipe from which it will be read asynchronously for output.
To use an instance of this class, it is necessary to
call its run
method in a separate thread.
The getTable
method may be called before
the run
method has completed (or even started),
and will return a table whose rows may be streamed.
The run method checks for interruptions, so interrupting the thread in which it runs will cause it to stop consuming resources.
This code was originally written for J2SE1.4.
There may be less baroque ways of achieving the same effect using
the J2SE5 java.util.concurrent classes (BlockingQueue
).
Method Summary | |
---|---|
uk.ac.starlink.table.StarTable |
getTable()
Returns the result table. |
void |
run()
Does the work of feeding the rows to the result table. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public uk.ac.starlink.table.StarTable getTable() throws IOException
run
has at least started, but not necessarily until it has completed.
getTable
in interface TableProducer
IOException
public void run()
run
in interface Runnable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |