|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.SwingWorker<java.lang.String,java.lang.Void>
IMPACT.PhyMLTask
public class PhyMLTask
Implementation of a background task for PhyML execution.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.SwingWorker |
|---|
javax.swing.SwingWorker.StateValue |
| Constructor Summary | |
|---|---|
PhyMLTask(java.lang.String location,
java.lang.String seqfile,
java.lang.String[] options,
int pmlen)
Initialize PhyML Task. |
|
| Method Summary | |
|---|---|
protected java.lang.String |
doInBackground()
|
protected void |
done()
|
int |
getCurrent()
Get current value for display progress bar and/or monitor. It returns only the value that is greater than the previous one. |
java.lang.String |
getMessage()
Get formated message of elapsed time since beginning of execution. |
java.lang.String |
getOutput()
Get output resulting from terminated execution. |
boolean |
gotError()
Verify if execution terminated with an error. |
boolean |
isdone()
Verify if task has terminated. |
void |
stop()
Stop PhyML execution. |
| Methods inherited from class javax.swing.SwingWorker |
|---|
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, process, publish, removePropertyChangeListener, run, setProgress |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PhyMLTask(java.lang.String location,
java.lang.String seqfile,
java.lang.String[] options,
int pmlen)
location - PhyML executable absolute path location.seqfile - sequence absolute path file location.options - user phyml options.pmlen - maximum value of progress bar and/or monitor.| Method Detail |
|---|
protected java.lang.String doInBackground()
doInBackground in class javax.swing.SwingWorker<java.lang.String,java.lang.Void>protected void done()
done in class javax.swing.SwingWorker<java.lang.String,java.lang.Void>public boolean isdone()
public boolean gotError()
public int getCurrent()
public java.lang.String getMessage()
public java.lang.String getOutput()
public void stop()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||