jpiv2
Class PivEvaluation

java.lang.Object
  extended by java.lang.Thread
      extended by jpiv2.PivEvaluation
All Implemented Interfaces:
java.lang.Runnable

public class PivEvaluation
extends java.lang.Thread

PIV Evaluation.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
PivEvaluation(JPiv jpiv)
          Creates a new instance of PivEvaluation
 
Method Summary
 java.lang.String doPivEvaluation()
          Does the actual PIV evaluation.
 void run()
          Overrides run() in java.lang.Thread.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PivEvaluation

public PivEvaluation(JPiv jpiv)
Creates a new instance of PivEvaluation

Parameters:
jpiv - The jpiv2.JPiv mother component.
Method Detail

run

public void run()
Overrides run() in java.lang.Thread. Never call run() directly. Use jpiv2.PivEvaluation.start(), inherited from java.lang.Thread to start an instance of PivEvaluation as a new thread. When the PIV evaluation is finished, jpiv.getListFrame().notify() is called. Thus, you can use jpiv.getListFrame().wait() to stop your thread as long as this thread is busy. In this way, you can automatically start a couple of PivEvaluation threads and modify some parameters in between.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

doPivEvaluation

public java.lang.String doPivEvaluation()
Does the actual PIV evaluation. This function does the looping over the passes and the images and writes the output into files. If you want to run the PIV evaluation in a separate thread, call the method start() instead.

Returns:
The last used filename.