Search in sources :

Example 1 with InstanceDataPort

use of org.apache.airavata.workflow.model.graph.amazon.InstanceDataPort in project airavata by apache.

the class WSGraphFactory method createPort.

public PortImpl createPort(XmlElement portElement) {
    String type = portElement.attributeValue(GraphSchema.NS, GraphSchema.PORT_TYPE_ATTRIBUTE);
    if (type == null) {
        // Old graphs don't have the namespace for the attribute.
        type = portElement.attributeValue(GraphSchema.PORT_TYPE_ATTRIBUTE);
    }
    PortImpl port;
    if (GraphSchema.PORT_TYPE_WS_DATA.equals(type)) {
        port = new WSPort(portElement);
    } else if (GraphSchema.PORT_TYPE_SYSTEM_DATA.equals(type)) {
        port = new SystemDataPort(portElement);
    } else if (GraphSchema.PORT_TYPE_CONTROL.equals(type)) {
        port = new ControlPort(portElement);
    } else if (GraphSchema.PORT_TYPE_EPR.equals(type)) {
        port = new EPRPort(portElement);
    } else if (GraphSchema.PORT_TYPE_INSTANCE.equals(type)) {
        port = new InstanceDataPort(portElement);
    } else {
        // Default is WsPort because of backword compatibility
        port = new WSPort(portElement);
    }
    return port;
}
Also used : EPRPort(org.apache.airavata.workflow.model.graph.EPRPort) ControlPort(org.apache.airavata.workflow.model.graph.ControlPort) InstanceDataPort(org.apache.airavata.workflow.model.graph.amazon.InstanceDataPort) SystemDataPort(org.apache.airavata.workflow.model.graph.system.SystemDataPort) PortImpl(org.apache.airavata.workflow.model.graph.impl.PortImpl)

Example 2 with InstanceDataPort

use of org.apache.airavata.workflow.model.graph.amazon.InstanceDataPort in project airavata by apache.

the class InstanceComponentDataPort method createPort.

/**
 * @see org.apache.airavata.workflow.model.component.ComponentDataPort#createPort()
 */
@Override
public DataPort createPort() {
    DataPort n = new InstanceDataPort();
    n.setName(PORT_NAME);
    return n;
}
Also used : DataPort(org.apache.airavata.workflow.model.graph.DataPort) ComponentDataPort(org.apache.airavata.workflow.model.component.ComponentDataPort) InstanceDataPort(org.apache.airavata.workflow.model.graph.amazon.InstanceDataPort) InstanceDataPort(org.apache.airavata.workflow.model.graph.amazon.InstanceDataPort)

Aggregations

InstanceDataPort (org.apache.airavata.workflow.model.graph.amazon.InstanceDataPort)2 ComponentDataPort (org.apache.airavata.workflow.model.component.ComponentDataPort)1 ControlPort (org.apache.airavata.workflow.model.graph.ControlPort)1 DataPort (org.apache.airavata.workflow.model.graph.DataPort)1 EPRPort (org.apache.airavata.workflow.model.graph.EPRPort)1 PortImpl (org.apache.airavata.workflow.model.graph.impl.PortImpl)1 SystemDataPort (org.apache.airavata.workflow.model.graph.system.SystemDataPort)1