uk.co.agena.minerva.util.model
Interface Progressable

All Known Implementing Classes:
DynDiscPropagation, ExtendedBN, ExtendedBNList, MinervaPropagation, NPTGenerator, Propagation

public interface Progressable

Classes in which progress needs to be monitored in any way must implement this class.


Method Summary
 int getCurrentProgress()
           
 int getLengthOfProgressableTask()
           
 boolean isProgressableTaskDone()
           
 void resetProgressableTask()
          Should be invoked at the end of the task to reset all required attributes used in the monitoring of the task.
 void terminateProgressableTask()
          Invoked when the user has requested the task to be terminated.
 

Method Detail

getCurrentProgress

int getCurrentProgress()
Returns:
The current progress value (int)

getLengthOfProgressableTask

int getLengthOfProgressableTask()
Returns:
The length of the task being monitored as an int.

terminateProgressableTask

void terminateProgressableTask()
Invoked when the user has requested the task to be terminated.


isProgressableTaskDone

boolean isProgressableTaskDone()
Returns:
The status of the done flag which should be set to indicate the task is over whether is has been terminated or finished.

resetProgressableTask

void resetProgressableTask()
Should be invoked at the end of the task to reset all required attributes used in the monitoring of the task.



Copyright © 2006 Agena Ltd. All Rights Reserved.