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

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.logging.progress.ProgressTracker

public class ProgressTracker
extends Object

Class to keep track of "alive" progresses.


Field Summary
private  Vector<WeakReference<Progress>> progresses
          Set of potentially active progresses.
 
Constructor Summary
ProgressTracker()
           
 
Method Summary
 void addProgress(Progress p)
          Add a new Progress to the tracker.
 Collection<Progress> getProgresses()
          Get a list of progresses tracked.
 Collection<Progress> removeCompleted()
          Remove completed progresses.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

progresses

private Vector<WeakReference<Progress>> progresses
Set of potentially active progresses.

Constructor Detail

ProgressTracker

public ProgressTracker()
Method Detail

getProgresses

public Collection<Progress> getProgresses()
Get a list of progresses tracked.

Returns:
List of progresses.

addProgress

public void addProgress(Progress p)
Add a new Progress to the tracker.

Parameters:
p - Progress

removeCompleted

public Collection<Progress> removeCompleted()
Remove completed progresses.

Returns:
List of progresses removed.

Release 0.4.0 (2011-09-20_1324)