NullMonitor
, StandardTaskMonitor
public interface TaskMonitor
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getCurrentActivityDescription() |
Gets the description of the current activity.
|
double |
getCurrentActivityFractionComplete() |
Gets the percentage done of the current activity
|
java.lang.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(java.lang.String activityDescription,
double fracComplete) |
Sets the description and the percentage done of the current activity.
|
void |
setCurrentActivityDescription(java.lang.String activity) |
Sets the description of the current activity.
|
void |
setCurrentActivityFractionComplete(double fracComplete) |
Sets the percentage done of the current activity
|
void |
setLatestResultPreview(java.lang.Object latestPreview) |
Sets the current result to preview
|
boolean |
taskShouldAbort() |
Gets whether the task should abort.
|
void setCurrentActivity(java.lang.String activityDescription, double fracComplete)
activity
- the description of the current activityfracComplete
- the percentage done of the current activityvoid setCurrentActivityDescription(java.lang.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(java.lang.Object latestPreview)
latestPreview
- the result to previewjava.lang.String 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 resultjava.lang.Object getLatestResultPreview()
Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.