Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.utilities.progress
Class IndefiniteProgress

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.utilities.progress.AbstractProgress
      extended by de.lmu.ifi.dbs.elki.utilities.progress.IndefiniteProgress
All Implemented Interfaces:
Progress

public class IndefiniteProgress
extends AbstractProgress

Progress class without a fixed destination value.

Author:
Erich Schubert

Field Summary
private  boolean completed
          Store completion flag.
 
Constructor Summary
IndefiniteProgress(String task)
          Constructor.
 
Method Summary
 StringBuffer appendToBuffer(StringBuffer buf)
          Serialize 'indefinite' progress.
 boolean complete()
          Return whether the progress is complete
 void setCompleted()
          Set the completion flag.
private  void setCompleted(boolean completed)
          Set the completion Flag.
 
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.progress.AbstractProgress
getProcessed, getTask, setProcessed, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

completed

private boolean completed
Store completion flag.

Constructor Detail

IndefiniteProgress

public IndefiniteProgress(String task)
Constructor.

Parameters:
task - Task name.
Method Detail

appendToBuffer

public StringBuffer appendToBuffer(StringBuffer buf)
Serialize 'indefinite' progress.

Specified by:
appendToBuffer in interface Progress
Specified by:
appendToBuffer in class AbstractProgress
Parameters:
buf - Buffer to serialize to
Returns:
Buffer the data was serialized to.

complete

public boolean complete()
Return whether the progress is complete

Returns:
Completion status.

setCompleted

private void setCompleted(boolean completed)
Set the completion Flag.

Parameters:
completed - boolean whether the progress is complete.

setCompleted

public void setCompleted()
Set the completion flag.


Release 0.2 (2009-07-06_1820)