Package Taverna.util

Source Code of Taverna.util.TavernaContext

package Taverna.util;

import Taverna.Tree.DataFlowImpl.Datalinks;
import Taverna.Tree.DataFlowImpl.DataLink;

public class TavernaContext {
  private Datalinks datalinks;
  // order is used for Taverna to Pipeline conversions. Pipeline inputs and outputs in
  // data modules have a 0-indexed order attribute specifying what position they take on
  // the command line.
  int order;
 
  public TavernaContext() {
    this.datalinks = new Datalinks();
    this.order = 0;
  }
 
  // Return order and increment it for the next time it's called
  public int getNextOrder(){
    return order++;
  }
 
  public void setOrder(int o){
    this.order = o;
  }
 
  public Datalinks getDatalinks(){
    return datalinks;
  }
 
  public void setDatalinks(Datalinks d){
    datalinks = d;
  }
 
  public void addDataLink(DataLink d){
    if(d != null){
      datalinks.addDataLink(d);
    }
  }
}
TOP

Related Classes of Taverna.util.TavernaContext

TOP
Copyright © 2018 www.massapi.com. 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.