public abstract class AbstractMonitor extends java.lang.Object implements OMMonitor
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractMonitor.AsyncTimerTask |
OMMonitor.AsyncDEFAULT_TIME_FACTOR, THOUSANDHUNDRED, ONE, TEN, ZERO| Constructor and Description |
|---|
AbstractMonitor() |
| Modifier and Type | Method and Description |
|---|---|
OMMonitor |
begin()
Same as calling
begin(ONE). |
OMMonitor |
begin(double totalWork) |
protected AbstractMonitor.AsyncTimerTask |
createAsyncTimerTask(double work) |
protected OMMonitor |
createNestedMonitor(double work) |
void |
done() |
OMMonitor |
fork()
Same as calling
fork(ONE). |
OMMonitor |
fork(double work) |
OMMonitor.Async |
forkAsync()
Same as calling
forkAsync(ONE). |
OMMonitor.Async |
forkAsync(double work) |
protected abstract long |
getAsyncSchedulePeriod() |
protected abstract java.util.Timer |
getTimer() |
double |
getTotalWork() |
double |
getWork() |
double |
getWorkPercent() |
boolean |
hasBegun() |
protected static double |
percent(double part,
double whole) |
protected abstract void |
scheduleAtFixedRate(java.util.TimerTask task,
long delay,
long period) |
void |
worked()
Same as calling
worked(ONE). |
void |
worked(double work) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckCanceled, isCanceledpublic boolean hasBegun()
throws MonitorCanceledException
hasBegun in interface OMMonitorMonitorCanceledExceptionpublic OMMonitor begin(double totalWork) throws MonitorCanceledException
begin in interface OMMonitorMonitorCanceledExceptionpublic OMMonitor begin() throws MonitorCanceledException
OMMonitorbegin(ONE).begin in interface OMMonitorMonitorCanceledExceptionpublic void worked(double work)
throws MonitorCanceledException
worked in interface OMMonitorMonitorCanceledExceptionpublic void worked()
throws MonitorCanceledException
OMMonitorworked(ONE).worked in interface OMMonitorMonitorCanceledExceptionpublic OMMonitor fork()
OMMonitorfork(ONE).public OMMonitor.Async forkAsync(double work)
public OMMonitor.Async forkAsync()
OMMonitorforkAsync(ONE).public double getTotalWork()
getTotalWork in interface OMMonitorProgresspublic double getWork()
getWork in interface OMMonitorProgresspublic double getWorkPercent()
getWorkPercent in interface OMMonitorProgressprotected OMMonitor createNestedMonitor(double work)
protected AbstractMonitor.AsyncTimerTask createAsyncTimerTask(double work)
protected abstract long getAsyncSchedulePeriod()
protected abstract java.util.Timer getTimer()
protected abstract void scheduleAtFixedRate(java.util.TimerTask task,
long delay,
long period)
protected static double percent(double part,
double whole)
Copyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html