public interface TaskMonitor
Modifier and Type | Method and Description |
---|---|
String |
getCurrentActivityDescription()
Gets the description of the current activity.
|
double |
getCurrentActivityFractionComplete()
Gets the percentage done of the current activity
|
Object |
getLatestResultPreview()
Gets the current result to preview
|
boolean |
isCancelled()
Gets whether the task monitored is cancelled.
|
boolean |
isPaused()
Gets whether the task monitored is paused.
|
void |
requestCancel()
Requests the task monitored to cancel.
|
void |
requestPause()
Requests the task monitored to pause.
|
void |
requestResultPreview()
Requests to preview the task result.
|
void |
requestResultPreview(ResultPreviewListener toInform)
Requests to preview the task result.
|
void |
requestResume()
Requests the task monitored to resume.
|
boolean |
resultPreviewRequested()
Gets whether there is a request for preview the task result.
|
void |
setCurrentActivity(String activityDescription,
double fracComplete)
Sets the description and the percentage done of the current activity.
|
void |
setCurrentActivityDescription(String activity)
Sets the description of the current activity.
|
void |
setCurrentActivityFractionComplete(double fracComplete)
Sets the percentage done of the current activity
|
void |
setLatestResultPreview(Object latestPreview)
Sets the current result to preview
|
boolean |
taskShouldAbort()
Gets whether the task should abort.
|
void setCurrentActivity(String activityDescription, double fracComplete)
activity
- the description of the current activityfracComplete
- the percentage done of the current activityvoid setCurrentActivityDescription(String activity)
activity
- the description of the current activityvoid setCurrentActivityFractionComplete(double fracComplete)
fracComplete
- the percentage done of the current activityboolean taskShouldAbort()
boolean resultPreviewRequested()
void setLatestResultPreview(Object latestPreview)
latestPreview
- the result to previewString getCurrentActivityDescription()
double getCurrentActivityFractionComplete()
void requestPause()
void requestResume()
void requestCancel()
boolean isPaused()
boolean isCancelled()
void requestResultPreview()
void requestResultPreview(ResultPreviewListener toInform)
toInform
- the listener of the changes in the preview of the resultObject getLatestResultPreview()
Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.