Package eu.admire.dispel.graph

Examples of eu.admire.dispel.graph.ResultNode


    {
        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);
        graph.add(out);
View Full Code Here


   
    public void testResults()
    {
        ProcessingElementNode a = new ProcessingElementNode("eu.admire.A");
        ProcessingElementNode b = new ProcessingElementNode("eu.admire.B");
        ResultNode result = new ResultNode("result");
        a.connectOutput("out", 0, b.getInput("in", 0));
        result.connectInput(b.getOutput("out", 0));
        Graph graph = new Graph();
        graph.add(a);
        graph.add(b);
        graph.add(result);
//        System.out.println(GraphConverter.convertToDISPEL(graph));
View Full Code Here

                    throw new TransformationException(
                            "No input " + ResultNode.INPUT_NAME
                            + " defined for processing element "
                            + ResultNode.NAME);
                }
                ResultNode result = new ResultNode(name);
                result.copyAnnotations(node);
                connectNewResultNode(node, result);
                add.add(result);
                LOG.debug("Created new result node, name: " + name);
            }
        }
View Full Code Here

        node1.addAnnotation(AnnotationKeys.LOCATION, location1);
        ProcessingElementNode node2 = new ProcessingElementNode("2");
        node2.addAnnotation(AnnotationKeys.LOCATION, location1);
        ProcessingElementNode node3 = new ProcessingElementNode("3");
        node3.addAnnotation(AnnotationKeys.LOCATION, location2);
        ResultNode result = new ResultNode("name");
        result.addAnnotation(AnnotationKeys.LOCATION, location2);
        node1.connectOutput("output", 0, node2.getInput("input", 0));
        node2.connectOutput("output", 0, node3.getInput("input", 0));
        node3.connectOutput("output", 0, result.getInput());
        Graph graph = new Graph();
        graph.add(node1);
        graph.add(node2);
        graph.add(node3);
        graph.add(result);
View Full Code Here

                connectNodes(dispel, names, el);
            }
        }
        else if (node instanceof ResultNode)
        {
            ResultNode result = (ResultNode) node;
            dispel.append("|- \"").append(result.getResultName()).append("\" -| => ");
            dispel.append(names.get(node)).append(".name;\n");
            writeConnections(dispel, names, node);
        }
        else if (node instanceof ExternalOutputNode)
        {
View Full Code Here

TOP

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

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.