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;
}
Aggregations