Search in sources :

Example 1 with IfComponent

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

the class IfNode method addInputPort.

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

Example 2 with IfComponent

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

the class IfNode method getComponent.

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

Aggregations

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