Package eu.admire.dispel.graph

Examples of eu.admire.dispel.graph.ExternalInputNode


    public void testExternalInputsOutputs()
    {
        ProcessingElementNode a = new ProcessingElementNode("eu.admire.A");
        ProcessingElementNode b = new ProcessingElementNode("eu.admire.B");
        ExternalOutputNode out = new ExternalOutputNode("transfer1", "epr=\"xyz\"");
        ExternalInputNode in = new ExternalInputNode("transfer1", "epr");
        ResultNode result = new ResultNode("result");
        a.connectOutput("out", 0, b.getInput("in", 0));
        out.connectInput(b.getOutput("out", 0));
        a.connectInput("in", 0, in.getOutput());
        result.connectInput(b.getOutput("xxx", 0));
        Graph graph = new Graph();
        graph.add(a);
        graph.add(b);
        graph.add(in);
View Full Code Here


        externalOutput.getAllInputs().get(ExternalOutputNode.INPUT_NAME).put(0, connection);
        externalOutput.addAnnotation(AnnotationKeys.GATEWAY, sourceGateway);
        graph.add(externalOutput);
               
        // insert an external input node which connects to the results
        ExternalInputNode externalInput =
            new ExternalInputNode(transferName, mRootGateway);
        target.replaceInput(name, index, externalInput.getOutput());
        externalInput.addAnnotation(AnnotationKeys.GATEWAY, targetGateway);
        graph.add(externalInput);
    }
View Full Code Here

                                + " defined for processing element "
                                + ExternalInputNode.NAME);
                    }
                    Connection data =
                        node.getOutput(ExternalInputNode.OUTPUT_NAME, 0);
                    ExternalInputNode result = new ExternalInputNode(name, gateway);
                    result.copyAnnotations(node);
                    result.connectOutput(
                            data.getSource().getOutput(
                                    data.getSourceOutputName(),
                                    data.getSourceOutputIndex()));
                    add.add(result);
                    LOG.debug("Created new external output node, name: " + name);
View Full Code Here

            dispel.append(";\n");
            writeConnections(dispel, names, node);
        }
        else if (node instanceof ExternalInputNode)
        {
            ExternalInputNode input = (ExternalInputNode) node;
            dispel.append("|- \"").append(input.getResultName()).append("\" -| => ");
            dispel.append(names.get(node));
            dispel.append(".").append(ExternalInputNode.INPUT_RESULT);
            dispel.append(";\n");
            String epr = input.getGatewayAddress().replace("\"", "\\\"");
            dispel.append("|- \"").append(epr).append("\" -| => ");
            dispel.append(names.get(node));
            dispel.append(".").append(ExternalInputNode.INPUT_GATEWAY);
            dispel.append(";\n");
            writeConnections(dispel, names, node);
View Full Code Here

    {
        ProcessingElement getDS = new ProcessingElement("eu.admire.GetGatewayDataSource");
        getDS.createOutput(GetGatewayDataSourceResourceRESTActivity.OUTPUT);
        getDS.createInput(GetGatewayDataSourceResourceRESTActivity.INPUT_GATEWAY_URI);
        getDS.createInput(GetGatewayDataSourceResourceRESTActivity.INPUT_RESULT_NAME);
        ExternalInputNode output = (ExternalInputNode)source;
        getDS.addInput(
                GetGatewayDataSourceResourceRESTActivity.INPUT_GATEWAY_URI,
                new StringData(output.getGatewayAddress()));
        getDS.addInput(
                GetGatewayDataSourceResourceRESTActivity.INPUT_RESULT_NAME,
                new StringData(output.getResultName()));
        pipeline.add(getDS);
        return getDS.getOutput(GetGatewayDataSourceResourceRESTActivity.OUTPUT);
    }
View Full Code Here

TOP

Related Classes of eu.admire.dispel.graph.ExternalInputNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.