Package LONI.tree.workflow

Examples of LONI.tree.workflow.Connection


        if(c.getSource().equals(id))
          isConnected = true;
      }
      //If the output is not connected to any other modules.
      if(isConnected == false){
        Connection runConn; //connection to the run module
       
        //Create a new parameter for the runmodule that is connected
        //to the connectionless output.
        LONI.tree.module.Parameter runInput = new LONI.tree.module.Parameter();
        runInput.setId(runContext.getPathContext().getAbsoluteContext("conn"+conncount));
        runInput.setFileFormat(new Format());
        runInput.getFormat().setCardinality(1);
        runInput.getFormat().setType("File");
        runFileType = new FileType();
        runFileType.setName(GENERIC_DICT_TYPE);
        runFileType.setDescription("");
        runFileType.setExtension("");
        runInput.getFormat().getFileTypes().addFileType(runFileType);
        runInput.setOrder(conncount);
        runInput.setPrefix("-input");
        runInput.setPrefixSpaced(true);
        runInput.setEnabled(true);
        runInput.setName("input"+ conncount);
        //add the created input to the runmodule.
        runModule.addInput(runInput);
        //create a new connection from the connectionless output to the new run module input.
        runConn = new Connection(id, runInput.getId());
        le.addConnection(runConn);
        conncount++;
      }
    }
    //add all the connections in the environment being maintained to
View Full Code Here


   
    if(d.getDataLinks() != null){     
      List<DataLink> datalinkList = d.getDataLinks();
      for(DataLink datalink : datalinkList){
        sourceAndSink = (Pair) visit(datalink);
        connections.addConnection(new Connection(sourceAndSink.getElem1(), sourceAndSink.getElem2()));
      }
    } else {
      Printer.log("d.getDataLinks() is null");
    }   
    return connections;
View Full Code Here

TOP

Related Classes of LONI.tree.workflow.Connection

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.