|
||||||||||
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()
|
boolean |
isCancelled()
Returns always false to continue the crossvalidation used with this NullProgressUpdater . |
void |
setMax(int max)
sets the maximal value that will be set by setValue(), 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() |
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 since all methods except isCancelled
are not implemented. The method isCancelled
always returns
false to force the crossvalidation to continue.public void setMax(int max)
setMax
in interface ProgressUpdater
max
- the maximal valuepublic void setValue(int value)
setValue
in interface ProgressUpdater
value
- the current valuepublic void close()
public void setOffset()
public boolean isCancelled()
NullProgressUpdater
.
isCancelled
in interface ProgressUpdater
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |