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, toString
public 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)
AbstractProgress
appendToBuffer
in interface Progress
appendToBuffer
in class AbstractProgress
buf
- Buffer to serialize topublic boolean isComplete()
Progress
public void setTotal(int total) throws java.lang.IllegalArgumentException
total
- java.lang.IllegalArgumentException
public int getTotal()
Copyright © 2019 ELKI Development Team. License information.