Package eu.admire.dispel.graph

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


                expressions.add(expression);
            }
        }
        expressions.add(ListMarker.END);
        columnNames.add(ListMarker.END);
        project.connectInput("expressions", 0, expressions.getOutput());
        project.connectInput("columnNames", 0, columnNames.getOutput());
        composite.add(expressions);
        composite.add(columnNames);
        composite.add(project);
        return project;
View Full Code Here


            }
        }
        expressions.add(ListMarker.END);
        columnNames.add(ListMarker.END);
        project.connectInput("expressions", 0, expressions.getOutput());
        project.connectInput("columnNames", 0, columnNames.getOutput());
        composite.add(expressions);
        composite.add(columnNames);
        composite.add(project);
        return project;
    }
View Full Code Here

        expressions.add(expression);
        expressions.add(ListMarker.END);
        resultNames.add(ListMarker.BEGIN);
        resultNames.add(sourceOutput.getName());
        resultNames.add(ListMarker.END);
        project.connectInput("expressions", 0, expressions.getOutput());
        project.connectInput("resultColumnNames", 0, resultNames.getOutput());
        CompositeProcessingElement wrapper =
            new CompositeProcessingElement(
                    null,
                    composite);
View Full Code Here

        expressions.add(ListMarker.END);
        resultNames.add(ListMarker.BEGIN);
        resultNames.add(sourceOutput.getName());
        resultNames.add(ListMarker.END);
        project.connectInput("expressions", 0, expressions.getOutput());
        project.connectInput("resultColumnNames", 0, resultNames.getOutput());
        CompositeProcessingElement wrapper =
            new CompositeProcessingElement(
                    null,
                    composite);
        wrapper.setInput("input", 0, project.getInput("data", 0));
View Full Code Here

    public void testSimpleSequenceLiteral()
    {
        LiteralValuesNode literal = new LiteralValuesNode("x", "y", "<a href=\".\"/>", 1, 2);
        ProcessingElementNode a = new ProcessingElementNode("eu.admire.A");
        a.connectInput("in", 0, literal.getOutput());
        Graph graph = new Graph();
        graph.add(a);
        graph.add(literal);
//        System.out.println(GraphConverter.convertToDISPEL(graph));
    }
View Full Code Here

        LiteralValuesNode literal =
            new LiteralValuesNode(
                    ListMarker.BEGIN, "x", "y", ListMarker.END,
                    ListMarker.BEGIN, 1, 2, ListMarker.END);
        ProcessingElementNode a = new ProcessingElementNode("eu.admire.A");
        a.connectInput("in", 0, literal.getOutput());
        Graph graph = new Graph();
        graph.add(a);
        graph.add(literal);
//        System.out.println(GraphConverter.convertToDISPEL(graph));
    }
View Full Code Here

                    ListMarker.BEGIN,
                    ListMarker.BEGIN, 0, 1, 2.3, ListMarker.END,
                    ListMarker.END
                    );
        ProcessingElementNode a = new ProcessingElementNode("eu.admire.A");
        a.connectInput("in", 0, literal.getOutput());
        Graph graph = new Graph();
        graph.add(a);
        graph.add(literal);
//        System.out.println(GraphConverter.convertToDISPEL(graph));
    }
View Full Code Here

                ListMarker.BEGIN,
                new Repeater(null, Arrays.asList(ListMarker.BEGIN, "X", "Y", 2, ListMarker.END)),
                ListMarker.END);
        graph.add(nodeC);
        nodeA.connectInput("in1", 0, nodeB.getOutput());
        nodeA.connectInput("in2", 0, nodeC.getOutput());
        String dot = DotGenerator.generate(graph);
//        writeFile(dot);
        System.out.println(dot);
    }
View Full Code Here

        insert.setDispelOptimiser(new SimpleDispelOptimiser());
        RequestContext context = new MockRequestContext();
        Graph graph = new Graph();
        ProcessingElementNode a = new ProcessingElementNode("eu.admire.A");
        ProcessingElementNode b = new ProcessingElementNode("B");
        b.connectInput("in", 0, a.getOutput("out", 0));
        ProcessingElementNode c = new ProcessingElementNode("eu.admire.C");
        c.connectInput("in", 0, b.getOutput("out", 0));
        graph.add(a);
        graph.add(b);
        graph.add(c);
View Full Code Here

    {
        Graph graph = new Graph();
        LiteralValuesNode nodeL = new LiteralValuesNode("VALUE");
        graph.add(nodeL);
        ProcessingElementNode nodeA = new ProcessingElementNode("uk.org.ogsadai.SQLQuery");
        nodeA.connectInput("expression", 0, nodeL.getOutput());
        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();
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.