Package org.apache.airavata.workflow.model.component

Examples of org.apache.airavata.workflow.model.component.ComponentDataPort


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


    /**
     * Adds additional input port.
     */
    public void addInputPort() {
        ForEachComponent component = getComponent();
        ComponentDataPort input = component.getInputPort();
        DataPort port = input.createPort();
        addInputPort(port);
    }
View Full Code Here

        addInputPort(port);
    }

    public DataPort addInputPortAndReturn() {
        ForEachComponent component = getComponent();
        ComponentDataPort input = component.getInputPort();
        DataPort port = input.createPort();
        addInputPort(port);
        return port;
    }
View Full Code Here

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

        StringBuffer buf = new StringBuffer();
        buf.append("<html> <h1>" + this.name + " Component</h1>");
        buf.append("<h2>Description:</h2> " + this.description);

        for (int i = 0; i < this.inputs.size(); i++) {
            ComponentDataPort port = this.inputs.get(i);
            buf.append("<h3>Input" + (i + 1) + "</h3>");
            buf.append("<strong>Name: </strong>");
            buf.append("" + port.getName() + "<br>");
            buf.append("<strong>Description: </strong>");
            buf.append("" + port.getDescription());
        }

        for (int i = 0; i < this.outputs.size(); i++) {
            ComponentDataPort port = this.outputs.get(i);
            buf.append("<h3>Output" + (i + 1) + "</h3>");
            buf.append("<strong>Name: </strong>");
            buf.append("" + port.getName() + "<br>");
            buf.append("<strong>Description: </strong>");
            buf.append("" + port.getDescription());
        }

        buf.append("</html>");
        return buf.toString();
    }
View Full Code Here

    /**
     * Adds additional input port.
     */
    public void addInputPort() {
        EndifComponent component = getComponent();
        ComponentDataPort input = component.getInputPort();
        DataPort port = input.createPort();
        addInputPort(port);
    }
View Full Code Here

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

TOP

Related Classes of org.apache.airavata.workflow.model.component.ComponentDataPort

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.