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);
}
}
}