edu.jhu.cs.cisst.algorithms.optimize.fmg
Class FMGThread

java.lang.Object
  extended by java.lang.Thread
      extended by edu.jhu.cs.cisst.algorithms.optimize.fmg.FMGThread
All Implemented Interfaces:
java.lang.Runnable

public final class FMGThread
extends java.lang.Thread

A helper class of class FMG that implements the run() method of class thread.

Creating an object of this class means creating a new thread and immediately starting it. The run() method of this thread than simply calls method FMG.fmgProper() of the FMG object that it is helping.


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
FMGThread(FMG fmg, int numPresmooth, int numPostsmooth, int cyclingStrategy, int numMultiGrid)
          construct from target FMG object and from the parameters that will be passed on to method FMG.fmgProper() and immediately start the thread, i.e.
 
Method Summary
 void run()
          re-routes to FMG.fmgProper()
 
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

FMGThread

public FMGThread(FMG fmg,
                 int numPresmooth,
                 int numPostsmooth,
                 int cyclingStrategy,
                 int numMultiGrid)
construct from target FMG object and from the parameters that will be passed on to method FMG.fmgProper() and immediately start the thread, i.e. immediately start executing FMG.fmgProper().

Parameters:
fmg - the target FMG object, i.e. the object whose fmgProper() method will be called from run()
numPresmooth - the num presmooth
numPostsmooth - the num postsmooth
cyclingStrategy - the cycling strategy
numMultiGrid - the num multi grid
Method Detail

run

public void run()
re-routes to FMG.fmgProper()

implements method from Thread.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread
See Also:
Thread.run(), FMG#fmgProper