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