Search in sources :

Example 1 with ComponentControlPort

use of org.apache.airavata.workflow.model.component.ComponentControlPort in project airavata by apache.

the class ExitComponent method createPorts.

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();
        node.setControlInPort(port);
    }
    for (ComponentControlPort componentPort : this.controlOutPorts) {
        ControlPort port = componentPort.createPort();
        node.addControlOutPort(port);
    }
    if (this.eprPort != null) {
        EPRPort port = this.eprPort.createPort();
        node.setEPRPort(port);
    }
}
Also used : SystemComponentDataPort(org.apache.airavata.workflow.model.component.system.SystemComponentDataPort) DataPort(org.apache.airavata.workflow.model.graph.DataPort) ComponentDataPort(org.apache.airavata.workflow.model.component.ComponentDataPort) EPRPort(org.apache.airavata.workflow.model.graph.EPRPort) ControlPort(org.apache.airavata.workflow.model.graph.ControlPort) ComponentControlPort(org.apache.airavata.workflow.model.component.ComponentControlPort) ComponentControlPort(org.apache.airavata.workflow.model.component.ComponentControlPort) SystemComponentDataPort(org.apache.airavata.workflow.model.component.system.SystemComponentDataPort) ComponentDataPort(org.apache.airavata.workflow.model.component.ComponentDataPort)

Aggregations

ComponentControlPort (org.apache.airavata.workflow.model.component.ComponentControlPort)1 ComponentDataPort (org.apache.airavata.workflow.model.component.ComponentDataPort)1 SystemComponentDataPort (org.apache.airavata.workflow.model.component.system.SystemComponentDataPort)1 ControlPort (org.apache.airavata.workflow.model.graph.ControlPort)1 DataPort (org.apache.airavata.workflow.model.graph.DataPort)1 EPRPort (org.apache.airavata.workflow.model.graph.EPRPort)1