Search in sources :

Example 1 with ReceiveComponent

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

the class ReceiveNode method getComponent.

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

Example 2 with ReceiveComponent

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

the class ReceiveNode method addOutputPort.

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

Aggregations

ReceiveComponent (org.apache.airavata.workflow.model.component.system.ReceiveComponent)2 SystemComponentDataPort (org.apache.airavata.workflow.model.component.system.SystemComponentDataPort)1