Package eu.admire.dispel.graph

Examples of eu.admire.dispel.graph.ProcessingElementNode.connectOutput()


        ProcessingElementNode nodeB = new ProcessingElementNode("uk.org.ogsadai.TupleToWebRowSetCharArrays");
        Connection connection = new TeeConnection();
        nodeA.connectOutput("out1", 0, connection);
        nodeB.connectInput("in1", 0, connection);
        Connection out = new TeeConnection();
        nodeB.connectOutput("out2", 0, out);
        CompositeProcessingElement nodeC = new CompositeProcessingElement(
                "Composite",
                Arrays.<RequestNode>asList(nodeA, nodeB));
        Map<String, Map<Integer, Connection>> inputs = new HashMap<String, Map<Integer, Connection>>();
        nodeC.setInputs(inputs);
View Full Code Here


        ProcessingElementNode nodeB = new ProcessingElementNode("uk.org.ogsadai.TupleToWebRowSetCharArrays");
        Connection connection = new TeeConnection();
        nodeA.connectOutput("out1", 0, connection);
        nodeB.connectInput("in1", 0, connection);
        Connection out = new TeeConnection();
        nodeB.connectOutput("out2", 0, out);
        CompositeProcessingElement nodeC = new CompositeProcessingElement(
                "Composite",
                Arrays.<RequestNode>asList(nodeA, nodeB));
        Map<String, Map<Integer, Connection>> inputs = new HashMap<String, Map<Integer, Connection>>();
        nodeC.setInputs(inputs);
View Full Code Here

        ProcessingElementNode c = new ProcessingElementNode("C");
        a.connectInput("in", 0, b.getOutput("out", 0));
        CompositeProcessingElement composite =
            new CompositeProcessingElement("C", Arrays.<RequestNode>asList(a, b));
        composite.setInput("in", 0, b.getInput("in", 0));
        c.connectOutput("out", 0, composite.getInput("in", 0));
        Graph graph = GraphUtilities.getConnectedComponent(composite);
        List<RequestNode> nodes = graph.getNodes();
        System.out.println(graph);
        Assert.assertEquals(2, nodes.size());
        Assert.assertTrue(nodes.contains(composite));
View Full Code Here

        desc = new SimpleProcessingElementDescriptor(
                    Collections.<ProcessingElementInputDescriptor>emptyList(),
                    Arrays.asList(outp),
                    null);
        b.setDescriptor(desc);
        b.connectOutput("output", 0, a.getInput("input", 0));
        Graph graph = new Graph();
        graph.add(a);
        graph.add(b);
        TypeValidator validator = new TypeValidator();
        validator.setTypeChecker(new StrictTypeChecker());
View Full Code Here

        desc = new SimpleProcessingElementDescriptor(
                    Collections.<ProcessingElementInputDescriptor>emptyList(),
                    Arrays.asList(outp),
                    null);
        b.setDescriptor(desc);
        b.connectOutput("output", 0, a.getInput("input", 0));
        Graph graph = new Graph();
        graph.add(a);
        graph.add(b);
        TypeValidator validator = new TypeValidator();
        validator.setTypeChecker(new StrictTypeChecker());
View Full Code Here

        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

        ProcessingElementNode node1 = new ProcessingElementNode("1");
        node1.addAnnotation(AnnotationKeys.LOCATION, mLocation);
        literal.connectOutput("output", 0, node1.getInput("input", 0));
        ProcessingElementNode node2 = new ProcessingElementNode("2");
        node2.addAnnotation(AnnotationKeys.LOCATION, mLocation);
        node2.connectOutput("output", 0, node1.getInput("control", 0));
        Graph graph = new Graph();
        graph.add(literal);
        graph.add(node1);
        graph.add(node2);
        ExchangeFactory factory = new TestExchangeFactory();
View Full Code Here

        ProcessingElementNode node1 = new ProcessingElementNode("1");
        node1.addAnnotation(AnnotationKeys.LOCATION, mLocation);
        literal.connectOutput("output", 0, node1.getInput("input", 0));
        ProcessingElementNode node2 = new ProcessingElementNode("2");
        node2.addAnnotation(AnnotationKeys.LOCATION, mLocation);
        node2.connectOutput("output", 0, node1.getInput("control", 0));
        ProcessingElementNode node3 = new ProcessingElementNode("3");
        node3.addAnnotation(AnnotationKeys.LOCATION, mLocation);
        node3.connectInput("input", 0, literal.getOutput());
        ProcessingElementNode node4 = new ProcessingElementNode("4");
        node4.addAnnotation(AnnotationKeys.LOCATION, mLocation);
View Full Code Here

        ProcessingElementNode node3 = new ProcessingElementNode("3");
        node3.addAnnotation(AnnotationKeys.LOCATION, mLocation);
        node3.connectInput("input", 0, literal.getOutput());
        ProcessingElementNode node4 = new ProcessingElementNode("4");
        node4.addAnnotation(AnnotationKeys.LOCATION, mLocation);
        node4.connectOutput("output", 0, node3.getInput("control", 0));
        Graph graph = new Graph();
        graph.add(literal);
        graph.add(node1);
        graph.add(node2);
        graph.add(node3);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.