Package eu.admire.dispel.graph

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


    }
   
    public void testLiteralTupleTypeWithRest() throws Exception
    {
        LiteralValuesNode literal = new LiteralValuesNode();
        literal.addAnnotation(AnnotationKeys.LOCATION, mLocation);
        literal.add(ListMarker.END);
        Map<String, Object> tuple = new HashMap<String, Object>();
        tuple.put("a", 10);
        tuple.put("b", "test");
        literal.add(tuple);
View Full Code Here


    }
       
    public void testLiteralTupleInput() throws Exception
    {
        LiteralValuesNode literal = new LiteralValuesNode();
        literal.addAnnotation(AnnotationKeys.LOCATION, mLocation);
        literal.add(ListMarker.BEGIN);
        Map<String, Object> tuple = new HashMap<String, Object>();
        tuple.put("a", 10);
        tuple.put("b", "test");
        literal.add(tuple);
View Full Code Here

    }
   
    public void testRepeatEnough() throws Exception
    {
        LiteralValuesNode literal = new LiteralValuesNode();
        literal.addAnnotation(AnnotationKeys.LOCATION, mLocation);
        literal.add(new Repeater(null, "X"));
        ProcessingElementNode node1 = new ProcessingElementNode("1");
        node1.addAnnotation(AnnotationKeys.LOCATION, mLocation);
        literal.connectOutput("output", 0, node1.getInput("input", 0));
        ProcessingElementNode node2 = new ProcessingElementNode("2");
View Full Code Here

    }
   
    public void testRepeatEnoughWithTee() throws Exception
    {
        LiteralValuesNode literal = new LiteralValuesNode();
        literal.addAnnotation(AnnotationKeys.LOCATION, mLocation);
        literal.add(new Repeater(null, "X"));
        ProcessingElementNode node1 = new ProcessingElementNode("1");
        node1.addAnnotation(AnnotationKeys.LOCATION, mLocation);
        literal.connectOutput("output", 0, node1.getInput("input", 0));
        ProcessingElementNode node2 = new ProcessingElementNode("2");
View Full Code Here

    }
   
    public void testRepeatEnoughWithLiteralControl() throws Exception
    {
        LiteralValuesNode literal = new LiteralValuesNode();
        literal.addAnnotation(AnnotationKeys.LOCATION, mLocation);
        literal.add(new Repeater(null, "X"));
        LiteralValuesNode control = new LiteralValuesNode();
        control.addAnnotation(AnnotationKeys.LOCATION, mLocation);
        control.add("Y");
        control.add("Z");
View Full Code Here

    {
        LiteralValuesNode literal = new LiteralValuesNode();
        literal.addAnnotation(AnnotationKeys.LOCATION, mLocation);
        literal.add(new Repeater(null, "X"));
        LiteralValuesNode control = new LiteralValuesNode();
        control.addAnnotation(AnnotationKeys.LOCATION, mLocation);
        control.add("Y");
        control.add("Z");
        ProcessingElementNode node1 = new ProcessingElementNode("1");
        node1.addAnnotation(AnnotationKeys.LOCATION, mLocation);
        literal.connectOutput("output", 0, node1.getInput("input", 0));
View Full Code Here

    }
   
    public void testDoubleRepeatEnough() throws Exception
    {
        LiteralValuesNode repeat1 = new LiteralValuesNode();
        repeat1.addAnnotation(AnnotationKeys.LOCATION, mLocation);
        repeat1.add(new Repeater(null, "X"));
        LiteralValuesNode repeat2 = new LiteralValuesNode();
        repeat2.addAnnotation(AnnotationKeys.LOCATION, mLocation);
        repeat2.add(new Repeater(null, "Y"));
        LiteralValuesNode control = new LiteralValuesNode();
View Full Code Here

    {
        LiteralValuesNode repeat1 = new LiteralValuesNode();
        repeat1.addAnnotation(AnnotationKeys.LOCATION, mLocation);
        repeat1.add(new Repeater(null, "X"));
        LiteralValuesNode repeat2 = new LiteralValuesNode();
        repeat2.addAnnotation(AnnotationKeys.LOCATION, mLocation);
        repeat2.add(new Repeater(null, "Y"));
        LiteralValuesNode control = new LiteralValuesNode();
        control.addAnnotation(AnnotationKeys.LOCATION, mLocation);
        control.add("1");
        control.add("2");
View Full Code Here

        repeat1.add(new Repeater(null, "X"));
        LiteralValuesNode repeat2 = new LiteralValuesNode();
        repeat2.addAnnotation(AnnotationKeys.LOCATION, mLocation);
        repeat2.add(new Repeater(null, "Y"));
        LiteralValuesNode control = new LiteralValuesNode();
        control.addAnnotation(AnnotationKeys.LOCATION, mLocation);
        control.add("1");
        control.add("2");
        ProcessingElementNode node1 = new ProcessingElementNode("1");
        node1.addAnnotation(AnnotationKeys.LOCATION, mLocation);
        repeat1.connectOutput("output", 0, node1.getInput("input1", 0));
View Full Code Here

    }
   
    public void testRepeat() throws Exception
    {
        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");
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.