Package Taverna.Tree.DataFlowImpl

Examples of Taverna.Tree.DataFlowImpl.Dataflow


    Workflow workflow;
    String producedBy="taverna-2.3.0";
    String version = "1";    //Taverna wouldn't open the file with the version less than 1
    String xmlns="http://taverna.sf.net/2008/xml/t2flow";
   
    Dataflow dataflow = (Dataflow) visit(pipeline.getPipelineModuleGroup());
    workflow = new Workflow( dataflow,  producedBy,  version,  xmlns);
    this.workflow = workflow;
    return workflow;

  }
View Full Code Here


  /**
   * Visits Loni Pipeline ModuleGroup and converts into corresponding Taverna Dataflow object.
   */
  public Object visit(ModuleGroup moduleGroup){
    this.moduleGroup = moduleGroup;
    Dataflow dataflow;
   
    // Initialize parameters to construct Dataflow object
    String name = moduleGroup.getName();
    AnnotatedGranularDepthInputPorts inputPorts = new AnnotatedGranularDepthInputPorts();
    AnnotatedGranularDepthOutputPorts outputPorts = new AnnotatedGranularDepthOutputPorts();
    Processors processors = new Processors();
    Conditions conditions = new Conditions();
    Datalinks datalinks = (Datalinks) visit(pipeline.getConnections());
    Annotations annotations = new Annotations();
    String id = UUID.randomUUID().toString();
    String role = "top";
   
    dataflow = new Dataflow(name, inputPorts, outputPorts, processors, conditions, datalinks, annotations, id, role);
    this.dataflow = dataflow; // set environment variable for visitor
   
    // Add Title and Description
    annotations.addAnnotationChain("DescriptiveTitle", moduleGroup.getName(), null);
    annotations.addAnnotationChain("FreeTextDescription", moduleGroup.getDescription(), null);
View Full Code Here

TOP

Related Classes of Taverna.Tree.DataFlowImpl.Dataflow

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.