org.embl.ebi.escience.scuflworkers.talisman
Class TalismanProcessor

java.lang.Object
  extended by org.embl.ebi.escience.scufl.Processor
      extended by org.embl.ebi.escience.scuflworkers.talisman.TalismanProcessor
All Implemented Interfaces:
java.io.Serializable, IProcessor

public class TalismanProcessor
extends Processor
implements java.io.Serializable

A processor that makes use of a local installation of the Talisman classes to perform its operations. Construct with a talisman script document describing the inputs and outputs, see the tscript.xml document in the test package for an example.

Author:
Tom Oinn
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.embl.ebi.escience.scufl.IProcessor
ENACTOR
 
Constructor Summary
TalismanProcessor(ScuflModel model, java.lang.String name, java.lang.String tscript)
          Construct a new processor from the supplied Talisman script document.
 
Method Summary
 java.util.Map getInputMappings()
          Return the map of input port name (key) to talisman field locator (value)
 java.util.Map getOutputMappings()
          Return the map of output port name (key) to talisman field locator (value)
 java.util.Properties getProperties()
          Get the properties for this processor for display purposes
 java.lang.String getTalismanDefinitionURL()
          Return the URL that the talisman page definition is found at (string form)
 java.lang.String getTriggerName()
          Return the name of the trigger that gets invoked in this processor invocation
 java.lang.String getTScriptURL()
          Return the URL of the talisman script used to build this processor (string form)
 java.net.URL getTScriptURLObject()
          Return the URL of the talisman script used to build this processor (URL object)
 
Methods inherited from class org.embl.ebi.escience.scufl.Processor
addAlternate, addAnnotationTemplate, addBreakpoint, addPort, defaultAnnotationTemplates, fireModelEvent, getAlternatesArray, getAlternatesList, getAnnotationTemplates, getBackoff, getBoundInputPorts, getBoundOutputPorts, getCritical, getDefaultWorkers, getDescription, getInputPorts, getIterationStrategy, getLogLevel, getMaximumWorkers, getModel, getName, getOutputPorts, getPorts, getRealLogLevel, getResourceHost, getRetries, getRetryDelay, getTimeout, getWorkers, hasBreakpoint, isBoring, isOffline, locatePort, locatePort, removeAlternate, removeAnnotationTemplate, removePort, rmvBreakpoint, setBackoff, setBoring, setCritical, setDescription, setIterationStrategy, setLogLevel, setName, setOffline, setOnline, setRetries, setRetryDelay, setTimeout, setWorkers, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TalismanProcessor

public TalismanProcessor(ScuflModel model,
                         java.lang.String name,
                         java.lang.String tscript)
                  throws ProcessorCreationException,
                         DuplicateProcessorNameException
Construct a new processor from the supplied Talisman script document.

Throws:
ProcessorCreationException
DuplicateProcessorNameException
Method Detail

getTScriptURL

public java.lang.String getTScriptURL()
Return the URL of the talisman script used to build this processor (string form)


getTScriptURLObject

public java.net.URL getTScriptURLObject()
Return the URL of the talisman script used to build this processor (URL object)


getInputMappings

public java.util.Map getInputMappings()
Return the map of input port name (key) to talisman field locator (value)


getOutputMappings

public java.util.Map getOutputMappings()
Return the map of output port name (key) to talisman field locator (value)


getTriggerName

public java.lang.String getTriggerName()
Return the name of the trigger that gets invoked in this processor invocation


getTalismanDefinitionURL

public java.lang.String getTalismanDefinitionURL()
Return the URL that the talisman page definition is found at (string form)


getProperties

public java.util.Properties getProperties()
Get the properties for this processor for display purposes

Specified by:
getProperties in interface IProcessor
Specified by:
getProperties in class Processor
Returns:
a Properties instance containing all processor-specific properties, or optinally null if there are none