Package eu.admire.dispel.graph

Examples of eu.admire.dispel.graph.LiteralValuesNode.addAnnotation()


    {
        LiteralValuesNode literal1 = new LiteralValuesNode();
        literal1.addAnnotation(AnnotationKeys.LOCATION, mLocation);
        literal1.add(new Repeater(5, "X"));
        LiteralValuesNode literal2 = new LiteralValuesNode();
        literal2.addAnnotation(AnnotationKeys.LOCATION, mLocation);
        literal2.add(new Repeater(3, Arrays.asList(ListMarker.BEGIN, "Y", ListMarker.END)));
        ProcessingElementNode node1 = new ProcessingElementNode("1");
        node1.addAnnotation(AnnotationKeys.LOCATION, mLocation);
        literal1.connectOutput("output", 0, node1.getInput("input1", 0));
        literal2.connectOutput("output", 0, node1.getInput("input2", 0));
View Full Code Here


    }
   
    public void testLiteralNoTupleInput() throws Exception
    {
        LiteralValuesNode literal = new LiteralValuesNode();
        literal.addAnnotation(AnnotationKeys.LOCATION, mLocation);
        literal.add(ListMarker.BEGIN);
        literal.add(10);
        literal.add(20);
        literal.add(ListMarker.END);
        literal.setOutputDescriptor(AnySType.INSTANCE, null);
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.