jview
Class JAsynchronAnalyser.AnalyserThread

java.lang.Object
  extended by java.lang.Thread
      extended by jview.JAsynchronAnalyser.AnalyserThread
All Implemented Interfaces:
Runnable
Enclosing class:
JAsynchronAnalyser

private class JAsynchronAnalyser.AnalyserThread
extends Thread

Creates a new thread that takes the components analyser, prepares the data cards to be used in the analyser and processes it on start.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
private  VectorG[] in
          The analyser's data.
private  ProgressMonitor worker
          The progress meter to catch cancel events.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
protected JAsynchronAnalyser.AnalyserThread(ProgressMonitor boss, VectorG[] input)
          Prepares the analyser thread.
 
Method Summary
 void run()
          Runs the analyer.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

worker

private ProgressMonitor worker
The progress meter to catch cancel events.


in

private VectorG[] in
The analyser's data.

Constructor Detail

JAsynchronAnalyser.AnalyserThread

protected JAsynchronAnalyser.AnalyserThread(ProgressMonitor boss,
                                            VectorG[] input)
Prepares the analyser thread. Does not start automatically.

Method Detail

run

public void run()
Runs the analyer. Once finished, it calls the worker's JAsynchronAnalyser.ready(vec_math.VectorG[], vec_math.VectorG[]) method with the analysed data.

Specified by:
run in interface Runnable
Overrides:
run in class Thread