|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.utils.NullProgressUpdater
public class NullProgressUpdater
This class implements a ProgressUpdater doing nothing but forces a
crossvalidation that is used with an instance of this class to continue to
its end.
May be used, if no progress update is wished during a crossvalidation.
| Method Summary | |
|---|---|
void |
close()
Closes the supervision. |
static NullProgressUpdater |
getImmutableInstance()
Returns a reference to the same NullProgressUpdater that is
immutable. |
boolean |
isCancelled()
Specifies if the process is cancelled by the user. |
void |
setMax(int max)
Sets the maximal value that will be set by ProgressUpdater.setValue(int), so a
value of max indicates the end of the supervised method call. |
void |
setOffset()
After setOffset() is called the current value
will be added to every value set by
setValue(int). |
void |
setValue(int value)
Sets the current value the supervised process has reached. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static NullProgressUpdater getImmutableInstance()
NullProgressUpdater that is
immutable.
NullProgressUpdater that
is immutable since all methods except isCancelled() are
not implemented. The method isCancelled() always returns
false to force the crossvalidation to continuepublic void setMax(int max)
ProgressUpdaterProgressUpdater.setValue(int), so a
value of max indicates the end of the supervised method call.
setMax in interface ProgressUpdatermax - the maximal valuepublic void setValue(int value)
ProgressUpdater
setValue in interface ProgressUpdatervalue - the current valuepublic void close()
public void setOffset()
setOffset() is called the current value
will be added to every value set by
setValue(int).
public boolean isCancelled()
ProgressUpdater
isCancelled in interface ProgressUpdatertrue if process was cancelled, false
otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||