Package elki.logging.progress
Class IndefiniteProgress
- java.lang.Object
-
- elki.logging.progress.AbstractProgress
-
- elki.logging.progress.IndefiniteProgress
-
- All Implemented Interfaces:
Progress
public class IndefiniteProgress extends AbstractProgress
Progress class without a fixed destination value.- Since:
- 0.2
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
completed
Store completion flag.-
Fields inherited from class elki.logging.progress.AbstractProgress
ratems
-
-
Constructor Summary
Constructors Constructor Description IndefiniteProgress(java.lang.String task)
Constructor.IndefiniteProgress(java.lang.String task, Logging logger)
Constructor with logging.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBuilder
appendToBuffer(java.lang.StringBuilder buf)
Serialize 'indefinite' progress.boolean
isComplete()
Return whether the progress is completevoid
setCompleted(Logging logger)
Set the completion flag and log it-
Methods inherited from class elki.logging.progress.AbstractProgress
getProcessed, getTask, incrementProcessed, setProcessed, setProcessed, testLoggingRate, toString
-
-
-
-
Constructor Detail
-
IndefiniteProgress
public IndefiniteProgress(java.lang.String task)
Constructor.- Parameters:
task
- Task name.
-
IndefiniteProgress
public IndefiniteProgress(java.lang.String task, Logging logger)
Constructor with logging.- Parameters:
task
- Task name.logger
- Logger to report to
-
-
Method Detail
-
appendToBuffer
public java.lang.StringBuilder appendToBuffer(java.lang.StringBuilder buf)
Serialize 'indefinite' progress.- Specified by:
appendToBuffer
in interfaceProgress
- Specified by:
appendToBuffer
in classAbstractProgress
- Parameters:
buf
- Buffer to serialize to- Returns:
- Buffer the data was serialized to.
-
isComplete
public boolean isComplete()
Return whether the progress is complete- Returns:
- Completion status.
-
setCompleted
public void setCompleted(Logging logger)
Set the completion flag and log it- Parameters:
logger
- Logger to report to.
-
-