net.sourceforge.taverna.scuflworkers.ncbi
Class AbstractEFetchWorker

java.lang.Object
  extended by net.sourceforge.taverna.scuflworkers.ncbi.AbstractEFetchWorker
All Implemented Interfaces:
LocalWorker
Direct Known Subclasses:
EFetchWorker, LocusLinkWorker, NucleotideFastaWorker, NucleotideGBSeqWorker, NucleotideINSDSeqXMLWorker, NucleotideTinySeqXMLWorker, ProteinFastaWorker, ProteinGBSeqWorker, ProteinINSDSeqXMLWorker, ProteinTinySeqXMLWorker, PubMedEFetchWorker, PubMedESearchWorker

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

This class provides the basis for all NCBI EFetch Tasks. Last edited by $Author: sowen70 $

Version:
$Revision: 1.3 $
Author:
Mark

Field Summary
static int GET_TRANSMITTER
           
static java.lang.String NEWLINE
           
static int POST_TRANSMITTER
           
 
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
AbstractEFetchWorker()
           
 
Method Summary
abstract  java.util.Map execute(java.util.Map inputMap)
          Given a Map of DataThing objects as input, invoke the underlying logic of the task and return a map of DataThing objects as outputs, with the port names acting as keys in the map in both cases.
abstract  java.lang.String[] inputNames()
          Get an array of the names of input ports for this processor
abstract  java.lang.String[] inputTypes()
          Get an array of the string types for the inputs defined by the inputNames() method, these should probably use the constants defined in this interface but may use any valid Baclava data type specifier.
 java.lang.String[] outputNames()
          Names of the output ports
 java.lang.String[] outputTypes()
          Types of the output ports
 
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

GET_TRANSMITTER

public static final int GET_TRANSMITTER
See Also:
Constant Field Values

POST_TRANSMITTER

public static final int POST_TRANSMITTER
See Also:
Constant Field Values
Constructor Detail

AbstractEFetchWorker

public AbstractEFetchWorker()
Method Detail

execute

public abstract java.util.Map execute(java.util.Map inputMap)
                               throws TaskExecutionException
Description copied from interface: LocalWorker
Given a Map of DataThing objects as input, invoke the underlying logic of the task and return a map of DataThing objects as outputs, with the port names acting as keys in the map in both cases.

Specified by:
execute in interface LocalWorker
Throws:
TaskExecutionException - thrown if there is an error during invocation of the task.
See Also:
LocalWorker.execute(java.util.Map)

inputNames

public abstract java.lang.String[] inputNames()
Description copied from interface: LocalWorker
Get an array of the names of input ports for this processor

Specified by:
inputNames in interface LocalWorker
See Also:
LocalWorker.inputNames()

inputTypes

public abstract java.lang.String[] inputTypes()
Description copied from interface: LocalWorker
Get an array of the string types for the inputs defined by the inputNames() method, these should probably use the constants defined in this interface but may use any valid Baclava data type specifier.

Specified by:
inputTypes in interface LocalWorker
See Also:
LocalWorker.inputTypes()

outputNames

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

Specified by:
outputNames in interface LocalWorker
See Also:
LocalWorker.outputNames()

outputTypes

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

Specified by:
outputTypes in interface LocalWorker
See Also:
LocalWorker.outputTypes()