Search in sources :

Example 1 with DynamicComponentPort

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

the class DynamicNode method getFreeInPort.

public DataPort getFreeInPort() {
    List<DataPort> inputPorts = this.getInputPorts();
    for (DataPort dataPort : inputPorts) {
        if (null == dataPort.getFromNode()) {
            return 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;
}
Also used : DataPort(org.apache.airavata.workflow.model.graph.DataPort) DynamicComponentPort(org.apache.airavata.workflow.model.component.dynamic.DynamicComponentPort)

Aggregations

DynamicComponentPort (org.apache.airavata.workflow.model.component.dynamic.DynamicComponentPort)1 DataPort (org.apache.airavata.workflow.model.graph.DataPort)1