|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.ece.iacl.jist.pipeline.CalculationMonitor
public class CalculationMonitor
Monitor a calculation during its execution.
Constructor Summary | |
---|---|
CalculationMonitor(ProcessingAlgorithm algo,
ViewJProgressBar progressBar)
Default constructor with algorithm and progress bar. |
|
CalculationMonitor(ProcessingAlgorithm algo,
ViewJProgressBar progressBar,
AbstractCalculation calc)
Default constructor with progress bar, observable calculation, and algorithm. |
Method Summary | |
---|---|
PerformanceSummary |
getPerformance()
Get summary of performance. |
long |
getTimeStamp()
Get time stamp in milliseconds. |
void |
observe(AbstractCalculation calc)
Start observing a calculation. |
void |
run()
Periodically poll the algorithm to determine its current progress. |
void |
setObservableCalculation(AbstractCalculation calc)
Set root calculation for this monitor. |
static void |
setPollInterval(long interval)
Set interval at which the algorithm is polled. |
void |
start()
Start calculation monitor. |
void |
stop()
Stop progress monitoring. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CalculationMonitor(ProcessingAlgorithm algo, ViewJProgressBar progressBar)
algo
- the algorithmprogressBar
- the progress barpublic CalculationMonitor(ProcessingAlgorithm algo, ViewJProgressBar progressBar, AbstractCalculation calc)
progressBar
- progress barcalc
- algorithm to monitoralgo
- the algorithmMethod Detail |
---|
public static void setPollInterval(long interval)
interval
- Poll interval in millisecondspublic PerformanceSummary getPerformance()
public long getTimeStamp()
public void observe(AbstractCalculation calc)
calc
- the calculationpublic void run()
run
in interface java.lang.Runnable
public void setObservableCalculation(AbstractCalculation calc)
calc
- the calculationpublic void start()
public void stop()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |