nl.utwente.ewi.hmi.taverna.scuflworkers.rshell
Class RshellTask

java.lang.Object
  extended by nl.utwente.ewi.hmi.taverna.scuflworkers.rshell.RshellTask
All Implemented Interfaces:
ProcessorTaskWorker

public class RshellTask
extends java.lang.Object
implements ProcessorTaskWorker

A task to invoke a RProcessor. Connect to the Rserv by using JRclient, and execute R script. Converts inputs and outputs as appropriate

Author:
Stian Soiland, Ingo Wassink

Constructor Summary
RshellTask(Processor processor)
          Constructor
 
Method Summary
 java.util.Map<java.lang.String,java.lang.Object> execute(java.util.Map workflowInputMap, IProcessorTask parentTask)
          Given a map of name->DataThing value, invoke the underlying task and return a map of result name -> DataThing value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RshellTask

public RshellTask(Processor processor)
Constructor

Parameters:
processor - the processor to be invoked
Method Detail

execute

public java.util.Map<java.lang.String,java.lang.Object> execute(java.util.Map workflowInputMap,
                                                                IProcessorTask parentTask)
                                                         throws TaskExecutionException
Description copied from interface: ProcessorTaskWorker
Given a map of name->DataThing value, invoke the underlying task and return a map of result name -> DataThing value.

Specified by:
execute in interface ProcessorTaskWorker
Throws:
TaskExecutionException - thrown if an error occurs during task invocation