Search in sources :

Example 1 with ForEachComponent

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

the class ForEachNode method addOutputPort.

/**
 * Adds additional output port.
 */
public void addOutputPort() {
    ForEachComponent component = getComponent();
    ComponentDataPort outputPort = component.getOutputPort();
    DataPort port = outputPort.createPort();
    addOutputPort(port);
}
Also used : DataPort(org.apache.airavata.workflow.model.graph.DataPort) ComponentDataPort(org.apache.airavata.workflow.model.component.ComponentDataPort) ForEachComponent(org.apache.airavata.workflow.model.component.system.ForEachComponent) ComponentDataPort(org.apache.airavata.workflow.model.component.ComponentDataPort)

Example 2 with ForEachComponent

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

the class ForEachNode method getComponent.

/**
 * @return
 */
@Override
public ForEachComponent getComponent() {
    ForEachComponent component = (ForEachComponent) super.getComponent();
    if (component == null) {
        // The component is null when read from the graph XML.
        component = new ForEachComponent();
        setComponent(component);
    }
    return component;
}
Also used : ForEachComponent(org.apache.airavata.workflow.model.component.system.ForEachComponent)

Example 3 with ForEachComponent

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

the class ForEachNode method addInputPort.

/**
 * Adds additional input port.
 */
public void addInputPort() {
    ForEachComponent component = getComponent();
    ComponentDataPort input = component.getInputPort();
    DataPort port = input.createPort();
    addInputPort(port);
}
Also used : DataPort(org.apache.airavata.workflow.model.graph.DataPort) ComponentDataPort(org.apache.airavata.workflow.model.component.ComponentDataPort) ForEachComponent(org.apache.airavata.workflow.model.component.system.ForEachComponent) ComponentDataPort(org.apache.airavata.workflow.model.component.ComponentDataPort)

Example 4 with ForEachComponent

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

the class ForEachNode method addInputPortAndReturn.

public DataPort addInputPortAndReturn() {
    ForEachComponent component = getComponent();
    ComponentDataPort input = component.getInputPort();
    DataPort port = input.createPort();
    addInputPort(port);
    return port;
}
Also used : DataPort(org.apache.airavata.workflow.model.graph.DataPort) ComponentDataPort(org.apache.airavata.workflow.model.component.ComponentDataPort) ForEachComponent(org.apache.airavata.workflow.model.component.system.ForEachComponent) ComponentDataPort(org.apache.airavata.workflow.model.component.ComponentDataPort)

Aggregations

ForEachComponent (org.apache.airavata.workflow.model.component.system.ForEachComponent)4 ComponentDataPort (org.apache.airavata.workflow.model.component.ComponentDataPort)3 DataPort (org.apache.airavata.workflow.model.graph.DataPort)3