NULL_MONITOR
Constructor and Description |
---|
PartialMonitor(Monitor wrapped,
double begin,
double end)
An existing Monitor will be wrapped for progress in a limited range.
|
Modifier and Type | Method and Description |
---|---|
void |
initReport(double initFraction)
Initialize the fraction of the work that was
completed when the process started.
|
boolean |
isCanceled()
If true, then any further progress should be cancelled.
|
void |
report(double fraction)
This method will be called with the current fraction
of work done.
|
public PartialMonitor(Monitor wrapped, double begin, double end)
wrapped
- The wrapped monitor.begin
- The first value to be updated to the wrapped monitor,
corresponding to a 0 reported to this monitor.end
- The last value to be updated to the wrapped monitor
corresponding to a 1 reported to this monitor.public void report(double fraction)
Monitor
public boolean isCanceled()
Monitor
isCanceled
in interface Monitor
public void initReport(double initFraction)
Monitor
initReport
in interface Monitor
initFraction
- Fraction of work done when
process started, from 0 to 1.