public class MutableProgress extends AbstractProgress
| Modifier and Type | Field and Description |
|---|---|
private int |
total
The overall number of items to process.
|
ratems| Constructor and Description |
|---|
MutableProgress(java.lang.String task,
int total,
Logging logger)
Constructor with logging.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.StringBuilder |
appendToBuffer(java.lang.StringBuilder buf)
Serialize a description into a String buffer.
|
int |
getTotal()
Get the current value of total.
|
boolean |
isComplete()
Test whether a progress is complete (and thus doesn't need to be shown anymore)
|
void |
setTotal(int total)
Modify the total value.
|
getProcessed, getTask, incrementProcessed, setProcessed, setProcessed, testLoggingRate, toStringpublic MutableProgress(java.lang.String task,
int total,
Logging logger)
task - Task name.total - Initial value of total.logger - Logger to report topublic java.lang.StringBuilder appendToBuffer(java.lang.StringBuilder buf)
AbstractProgressappendToBuffer in interface ProgressappendToBuffer in class AbstractProgressbuf - Buffer to serialize topublic boolean isComplete()
Progresspublic void setTotal(int total)
throws java.lang.IllegalArgumentException
total - java.lang.IllegalArgumentExceptionpublic int getTotal()
Copyright © 2019 ELKI Development Team. License information.