net.sourceforge.taverna.scuflworkers.ncbi
Class AbstractNCBIWorker

java.lang.Object
  extended by net.sourceforge.taverna.scuflworkers.ncbi.AbstractNCBIWorker
All Implemented Interfaces:
LocalWorker
Direct Known Subclasses:
EntrezGeneWorker, EntrezProteinWorker, HomoloGeneWorker, INSDSeqXMLWorker, NucleotideXMLWorker, OMIMWorker, PubMedSearchWorker, SNPWorker

public abstract class AbstractNCBIWorker
extends java.lang.Object
implements LocalWorker

This class provides basic common functionality needed by all NCBIWorkers.

Author:
mfortner

Field Summary
static java.lang.String NEWLINE
           
 
Fields inherited from interface org.embl.ebi.escience.scuflworkers.java.LocalWorker
BINARY, BINARY_ARRAY, HTML, HTML_ARRAY, PNG_IMAGE, PNG_IMAGE_ARRAY, STRING, STRING_ARRAY, UNTYPED, UNTYPED_ARRAY
 
Constructor Summary
AbstractNCBIWorker()
           
 
Method Summary
abstract  java.util.Map execute(java.util.Map inputMap)
          This is the main method of the class.
 java.lang.String[] inputNames()
          This method returns an array of names of input values.
 java.lang.String[] inputTypes()
          This method returns an array of input mimetypes.
 java.lang.String[] outputNames()
          This method returns an array of output value names.
 java.lang.String[] outputTypes()
          Types of the output ports
 void setStreamProcessor(StreamProcessor streamProc)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NEWLINE

public static final java.lang.String NEWLINE
Constructor Detail

AbstractNCBIWorker

public AbstractNCBIWorker()
Method Detail

execute

public abstract java.util.Map execute(java.util.Map inputMap)
                               throws TaskExecutionException
This is the main method of the class.

Specified by:
execute in interface LocalWorker
Parameters:
inputMap - A map of values to be used by the worker class.
Throws:
TaskExecutionException - thrown if there is an error during invocation of the task.

inputNames

public java.lang.String[] inputNames()
This method returns an array of names of input values. These values are used as keys in the inputMap.

Specified by:
inputNames in interface LocalWorker

inputTypes

public java.lang.String[] inputTypes()
This method returns an array of input mimetypes.

Specified by:
inputTypes in interface LocalWorker

outputNames

public java.lang.String[] outputNames()
This method returns an array of output value names. These values are used as keys in the outputMap.

Specified by:
outputNames in interface LocalWorker

outputTypes

public java.lang.String[] outputTypes()
Description copied from interface: LocalWorker
Types of the output ports

Specified by:
outputTypes in interface LocalWorker

setStreamProcessor

public void setStreamProcessor(StreamProcessor streamProc)