public abstract static class PredictWindowBase.PredictTaskBase extends java.lang.Object implements PredictWindowBase.BackgroundTask
Modifier and Type | Field and Description |
---|---|
protected boolean |
canCancel |
java.lang.String |
errorMessage |
boolean |
hadError |
protected boolean |
isCanceled |
protected int |
nextStepWork |
protected java.lang.String |
status |
protected ProgressHandler |
stepProgress |
protected int |
workDone |
Constructor and Description |
---|
PredictTaskBase() |
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
protected boolean |
checkError(int... list) |
protected boolean |
checkError(RNA... rnaList) |
protected boolean |
checkError(RNAstructureBackendCalculator... list) |
protected boolean |
checkError(java.lang.String... list) |
protected boolean |
checkError(TwoRNA... rnaList) |
int |
getProgress() |
java.lang.String |
getStatus() |
boolean |
isCancelable() |
protected void |
nextStep(java.lang.String stepStatus,
boolean stepCancel,
int stepWork) |
boolean |
onComplete()
Show the results window.
|
void |
run() |
protected abstract void |
runCalc() |
protected void |
setError(java.lang.String message) |
protected abstract boolean |
showResults() |
protected boolean canCancel
public java.lang.String errorMessage
public boolean hadError
protected boolean isCanceled
protected int nextStepWork
protected java.lang.String status
protected ProgressHandler stepProgress
protected int workDone
public void cancel()
cancel
in interface PredictWindowBase.BackgroundTask
protected boolean checkError(int... list)
protected boolean checkError(RNA... rnaList)
protected boolean checkError(RNAstructureBackendCalculator... list)
protected boolean checkError(java.lang.String... list)
protected boolean checkError(TwoRNA... rnaList)
public int getProgress()
getProgress
in interface PredictWindowBase.BackgroundTask
public java.lang.String getStatus()
getStatus
in interface PredictWindowBase.BackgroundTask
public boolean isCancelable()
isCancelable
in interface PredictWindowBase.BackgroundTask
protected void nextStep(java.lang.String stepStatus, boolean stepCancel, int stepWork)
public boolean onComplete()
public void run()
run
in interface java.lang.Runnable
run
in interface PredictWindowBase.BackgroundTask
protected abstract void runCalc()
protected void setError(java.lang.String message)
protected abstract boolean showResults()