Version: 1.1.1

ca.ucalgary.seahawk.util
Class DataFlowRecorder

java.lang.Object
  extended by ca.ucalgary.seahawk.util.DataFlowRecorder

public class DataFlowRecorder
extends Object

Takes a browsing history in Seahawk and turns it into a Taverna2 workflow (Programming-by-Example).


Field Summary
static int T2FLOW
           
static String T2FLOW_DISPATCHXML
           
static String T2FLOW_LISTFLATTEN_BEANSHELL
           
static String T2FLOW_NS
           
static String T2FLOW_PASSFILTER_BEANSHELL
           
static String T2FLOW_REGEXFILTER_BEANSHELL
           
static String T2FLOW_XPATHFILTER_BEANSHELL
           
static int TAVERNA15
           
 
Constructor Summary
DataFlowRecorder(Central mobyCtr)
           
 
Method Summary
 Element createAnnotationChain(String beanClass, String textValue, Document doc)
           
 void exportWorkflow(Map<URL,FilterSearch> resultDocuments, OutputStream outputStream, String workflowName, String workflowTitle, String workflowDescription, String workflowAuthor, int format)
          Given a MOBY document, traces back the workflow required to create it.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAVERNA15

public static final int TAVERNA15
See Also:
Constant Field Values

T2FLOW

public static final int T2FLOW
See Also:
Constant Field Values

T2FLOW_NS

public static final String T2FLOW_NS
See Also:
Constant Field Values

T2FLOW_DISPATCHXML

public static final String T2FLOW_DISPATCHXML
See Also:
Constant Field Values

T2FLOW_REGEXFILTER_BEANSHELL

public static final String T2FLOW_REGEXFILTER_BEANSHELL
See Also:
Constant Field Values

T2FLOW_XPATHFILTER_BEANSHELL

public static final String T2FLOW_XPATHFILTER_BEANSHELL
See Also:
Constant Field Values

T2FLOW_PASSFILTER_BEANSHELL

public static final String T2FLOW_PASSFILTER_BEANSHELL
See Also:
Constant Field Values

T2FLOW_LISTFLATTEN_BEANSHELL

public static final String T2FLOW_LISTFLATTEN_BEANSHELL
See Also:
Constant Field Values
Constructor Detail

DataFlowRecorder

public DataFlowRecorder(Central mobyCtr)
                 throws Exception
Throws:
Exception
Method Detail

exportWorkflow

public void exportWorkflow(Map<URL,FilterSearch> resultDocuments,
                           OutputStream outputStream,
                           String workflowName,
                           String workflowTitle,
                           String workflowDescription,
                           String workflowAuthor,
                           int format)
                    throws Exception
Given a MOBY document, traces back the workflow required to create it.

Parameters:
resultDocuments - the output of the workflow to backtrace
outputStream - where to write the output
workflowName - to be used as a label in the workflow
format - the format to write the workflow in (currently, only DataFlowRecorder.T2FLOW works)
Throws:
Exception

createAnnotationChain

public Element createAnnotationChain(String beanClass,
                                     String textValue,
                                     Document doc)

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010