Examples of DataPort


Examples of org.apache.airavata.workflow.model.graph.DataPort

     * @throws GraphException
     */
    public void removeInputPort() throws GraphException {
        List<DataPort> inputPorts = getInputPorts();
        // Remove the last one.
        DataPort inputPort = inputPorts.get(inputPorts.size() - 1);
        removeInputPort(inputPort);
    }
View Full Code Here

Examples of org.apache.airavata.workflow.model.graph.DataPort

     * Adds additional output port.
     */
    public void addOutputPort() {
        EndBlockComponent component = getComponent();
        ComponentDataPort outputPort = component.getOutputPort();
        DataPort port = outputPort.createPort();
        addOutputPort(port);
    }
View Full Code Here

Examples of org.apache.airavata.workflow.model.graph.DataPort

     * @throws GraphException
     */
    public void removeOutputPort() throws GraphException {
        List<DataPort> outputPorts = getOutputPorts();
        // Remove the last one.
        DataPort outputPort = outputPorts.get(outputPorts.size() - 1);
        removeOutputPort(outputPort);
    }
View Full Code Here

Examples of org.apache.airavata.workflow.model.graph.DataPort

    /**
     * @see org.apache.airavata.workflow.model.component.ComponentDataPort#createPort()
     */
    @Override
    public DataPort createPort() {
        DataPort n = new InstanceDataPort();
        n.setName(PORT_NAME);
        return n;
    }
View Full Code Here

Examples of org.apache.airavata.workflow.model.graph.DataPort

        // Create a copy to global variable.
        List<DataPort> outputPorts = endifNode.getOutputPorts();
        ArrayList<GpelAssignCopy> copies = new ArrayList<GpelAssignCopy>();
        for (int i = 0; i < outputPorts.size(); i++) {
            DataPort outputPort = outputPorts.get(i);
            String variable = outputPort.getID() + OUTPUT_SUFFIX;
            int index = ifBlock ? i : i + outputPorts.size();
            DataPort inputPort = endifNode.getInputPort(index);
            Port fromPort = inputPort.getFromPort();
            GpelAssignCopyFrom from = createAssignCopyFrom(fromPort);
            GpelAssignCopyTo to = new GpelAssignCopyTo(this.bpelNS);
            to.setVariable(variable);
            GpelAssignCopy copy = new GpelAssignCopy(this.bpelNS, from, to);
            copies.add(copy);
View Full Code Here

Examples of org.apache.airavata.workflow.model.graph.DataPort

        // Create a copy to global variable.
        List<DataPort> outputPorts = endBlockNode.getOutputPorts();
        ArrayList<GpelAssignCopy> copies = new ArrayList<GpelAssignCopy>();
        for (int i = 0; i < outputPorts.size(); i++) {
            DataPort outputPort = outputPorts.get(i);
            String variable = outputPort.getID() + OUTPUT_SUFFIX;
            int index = blockBlock ? i : i + outputPorts.size();
            DataPort inputPort = endBlockNode.getInputPort(index);
            Port fromPort = inputPort.getFromPort();
            GpelAssignCopyFrom from = createAssignCopyFrom(fromPort);
            GpelAssignCopyTo to = new GpelAssignCopyTo(this.bpelNS);
            to.setVariable(variable);
            GpelAssignCopy copy = new GpelAssignCopy(this.bpelNS, from, to);
            copies.add(copy);
View Full Code Here

Examples of org.apache.airavata.workflow.model.graph.DataPort

            }
        }
        // none found, so make a new one.
        DynamicComponentPort comPort = new DynamicComponentPort(getComponent());
        getComponent().addInputPort(comPort);
        DataPort port = comPort.createPort();
        ((DynamicPort) port).setNode(this);
        this.addInputPort(port);

        return port;
    }
View Full Code Here

Examples of org.apache.airavata.workflow.model.graph.DataPort

        List<DataPort> inputPorts = this.getInputPorts();
        if (inputPorts.size() == 1) {
            // This is the initial port, so leave it alone
            return;
        }
        DataPort portToBeRemoved = null;
        for (DataPort dataPort : inputPorts) {
            if (null == dataPort.getFromNode()) {
                getComponent().removeInputPort((DynamicComponentPort) dataPort.getComponentPort());
                portToBeRemoved = dataPort;
                break;
View Full Code Here

Examples of org.apache.airavata.workflow.model.graph.DataPort

    /**
   *
   */
    public boolean isAllInPortsConnected() {
        for (Iterator<DataPort> iterator = this.inputPorts.iterator(); iterator.hasNext();) {
            DataPort port = iterator.next();
            if (port.getFromNode() == null) {
                return false;
            }

        }
        return true;
View Full Code Here

Examples of org.apache.airavata.workflow.model.graph.DataPort

     */
    abstract public Node createNode(Graph graph);

    protected void createPorts(NodeImpl node) {
        for (ComponentDataPort input : getInputPorts()) {
            DataPort port = input.createPort();
            node.addInputPort(port);
        }

        for (ComponentDataPort output : getOutputPorts()) {
            DataPort port = output.createPort();
            node.addOutputPort(port);
        }

        if (this.controlInPort != null) {
            ControlPort port = this.controlInPort.createPort();
View Full Code Here
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.