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

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

public class IndefiniteProgress
extends AbstractProgress

Progress class without a fixed destination value.


Field Summary
private  boolean completed
          Store completion flag.
 
Constructor Summary
IndefiniteProgress(String task)
          Deprecated. 
IndefiniteProgress(String task, Logging logger)
          Constructor with logging.
 
Method Summary
 StringBuffer appendToBuffer(StringBuffer buf)
          Serialize 'indefinite' progress.
 boolean isComplete()
          Return whether the progress is complete
 void setCompleted()
          Deprecated. 
 void setCompleted(Logging logger)
          Set the completion flag and log it
 
Methods inherited from class de.lmu.ifi.dbs.elki.logging.progress.AbstractProgress
getProcessed, getTask, incrementProcessed, incrementProcessed, setProcessed, setProcessed, testLoggingRate, 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

@Deprecated
public IndefiniteProgress(String task)
Deprecated. 

Constructor.

Parameters:
task - Task name.

IndefiniteProgress

public IndefiniteProgress(String task,
                          Logging logger)
Constructor with logging.

Parameters:
task - Task name.
logger - Logger to report to
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.

isComplete

public boolean isComplete()
Return whether the progress is complete

Returns:
Completion status.

setCompleted

@Deprecated
public void setCompleted()
Deprecated. 

Set the completion flag.


setCompleted

public void setCompleted(Logging logger)
Set the completion flag and log it

Parameters:
logger - Logger to report to.

Release 0.4.0 (2011-09-20_1324)