public class StepProgress extends FiniteProgress
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
stepTitle
Title of the current step.
|
ratems
Constructor and Description |
---|
StepProgress(int total)
Constructor.
|
StepProgress(java.lang.String task,
int total)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.StringBuilder |
appendToBuffer(java.lang.StringBuilder buf)
Append a string representation of the progress to the given string buffer.
|
void |
beginStep(int step,
java.lang.String stepTitle,
Logging logger)
Do a new step and log it
|
protected java.lang.String |
getStepTitle() |
void |
setCompleted(Logging logger)
Mark the progress as completed and log it.
|
ensureCompleted, getTotal, isComplete, setProcessed
getProcessed, getTask, incrementProcessed, setProcessed, testLoggingRate, toString
public StepProgress(int total)
total
- Total number of steps.public StepProgress(java.lang.String task, int total)
task
- Task titletotal
- Total number of steps.public java.lang.StringBuilder appendToBuffer(java.lang.StringBuilder buf)
FiniteProgress
appendToBuffer
in interface Progress
appendToBuffer
in class FiniteProgress
buf
- Buffer to serialize topublic void beginStep(int step, java.lang.String stepTitle, Logging logger)
step
- Step numberstepTitle
- Step titlelogger
- Logger to report to.public void setCompleted(Logging logger)
logger
- Logger to report to.protected java.lang.String getStepTitle()
Copyright © 2019 ELKI Development Team. License information.