de.lmu.ifi.dbs.elki.logging.progress
Class ProgressTracker
java.lang.Object
de.lmu.ifi.dbs.elki.logging.progress.ProgressTracker
public class ProgressTracker
- extends Object
Class to keep track of "alive" progresses.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
progresses
private Vector<WeakReference<Progress>> progresses
- Set of potentially active progresses.
ProgressTracker
public ProgressTracker()
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.