www.sdmetrics.com

sdmetrics.app
Class CalcRunner

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--sdmetrics.app.CalcRunner
All Implemented Interfaces:
java.lang.Runnable

public class CalcRunner
extends java.lang.Thread

Helper class to run a metric calculation in its own thread.


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CalcRunner(Controller c, ProjectSettings ps)
           
 
Method Summary
 void run()
          Starts the metrics calculation.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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

CalcRunner

public CalcRunner(Controller c,
                  ProjectSettings ps)
Parameters:
c - A controller object that is ready to run doproject().
ps - The project settings to be used for the calculation run.
Method Detail

run

public void run()
Starts the metrics calculation. Controller object will invoke the callback SDMessageHandler.finishedComputation() to notify caller of completion.

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

www.sdmetrics.com