IMPACT
Class RSoftwareTask

java.lang.Object
  extended by javax.swing.SwingWorker<java.lang.String,java.lang.Void>
      extended by IMPACT.RSoftwareTask
All Implemented Interfaces:
java.lang.Runnable, java.util.concurrent.Future<java.lang.String>, java.util.concurrent.RunnableFuture<java.lang.String>

public class RSoftwareTask
extends javax.swing.SwingWorker<java.lang.String,java.lang.Void>

Implementation of background task to run R scripts.

Author:
Emanuel Maldonado
See Also:
ConTestTask, PhyMLTask, GenericJarTask

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.SwingWorker
javax.swing.SwingWorker.StateValue
 
Method Summary
protected  java.lang.String doInBackground()
           
protected  void done()
           
 int getCurrent()
          Get current value representing status of task.
It returns only the value that is bigger than the previous one.
 java.lang.String getMessage()
          Get message show task status.
 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 R Scripts 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
 

Method Detail

doInBackground

protected java.lang.String doInBackground()
Specified by:
doInBackground in class javax.swing.SwingWorker<java.lang.String,java.lang.Void>
Returns:
run

done

protected void done()
Overrides:
done in class javax.swing.SwingWorker<java.lang.String,java.lang.Void>

isdone

public boolean isdone()
Verify if task has terminated. While task not terminated performs operations on several values.

Returns:
true if task is done. false otherwise.

gotError

public boolean gotError()
Verify if execution terminated with an error.

Returns:
true if error ocurred; false otherwise.

getCurrent

public int getCurrent()
Get current value representing status of task.
It returns only the value that is bigger than the previous one.

Returns:
status.

getMessage

public java.lang.String getMessage()
Get message show task status.

Returns:
message status

getOutput

public java.lang.String getOutput()
Get output resulting from terminated execution.

Returns:
program output; null execution while not terminated.

stop

public void stop()
Stop R Scripts execution.