Package eu.admire.dispel.types

Examples of eu.admire.dispel.types.TupleSType.addElement()


    {
        ProcessingElementNode a = new ProcessingElementNode("A");
        ProcessingElementNode b = new ProcessingElementNode("B");
        ProcessingElementInputDescriptor inp = new ProcessingElementInputDescriptor("input");
        TupleSType t = new TupleSType();
        t.addElement("a", new PrimitiveSType("String"));
        inp.setSType(t);
        ProcessingElementDescriptor desc =
            new SimpleProcessingElementDescriptor(
                    Arrays.asList(inp),
                    Collections.<ProcessingElementOutputDescriptor>emptyList(),
View Full Code Here


                    Collections.<ProcessingElementOutputDescriptor>emptyList(),
                    null);
        a.setDescriptor(desc);
        ProcessingElementOutputDescriptor outp = new ProcessingElementOutputDescriptor("output");
        t = new TupleSType();
        t.addElement("b", new PrimitiveSType("String"));
        outp.setSType(t);
        desc = new SimpleProcessingElementDescriptor(
                    Collections.<ProcessingElementInputDescriptor>emptyList(),
                    Arrays.asList(outp),
                    null);
View Full Code Here

        tuple.put("a", 10);
        tuple.put("b", "test");
        literal.add(tuple);
        literal.add(ListMarker.END);
        TupleSType stype = new TupleSType();
        stype.addElement("a", new PrimitiveSType("Integer"));
        stype.addElement("b", new PrimitiveSType("String"));
        literal.setOutputDescriptor(new ListSType(stype), null);
        ProcessingElementNode node2 = new ProcessingElementNode("2");
        node2.addAnnotation(AnnotationKeys.LOCATION, mLocation);
        literal.connectOutput("output", 0, node2.getInput("input", 0));
View Full Code Here

        tuple.put("b", "test");
        literal.add(tuple);
        literal.add(ListMarker.END);
        TupleSType stype = new TupleSType();
        stype.addElement("a", new PrimitiveSType("Integer"));
        stype.addElement("b", new PrimitiveSType("String"));
        literal.setOutputDescriptor(new ListSType(stype), null);
        ProcessingElementNode node2 = new ProcessingElementNode("2");
        node2.addAnnotation(AnnotationKeys.LOCATION, mLocation);
        literal.connectOutput("output", 0, node2.getInput("input", 0));
        Graph graph = new Graph();
View Full Code Here

        "peInDescr1");
    ProcessingElementInputDescriptor peInDescr2 = new ProcessingElementInputDescriptor(
        "resource", true);
    peInDescr1.setArray(false);
    TupleSType sTypeIn1 = new TupleSType();
    sTypeIn1.addElement("a", new PrimitiveSType("primitiveSTypeDummyTestA"));
    sTypeIn1.addElement("b", new PrimitiveSType("primitiveSTypeDummyTestB"));
    SType sTypeIn2 = new PrimitiveSType("locator");
    peInDescr1.setSType(sTypeIn2);
    peInDescr2.setSType(sTypeIn1);
View Full Code Here

    ProcessingElementInputDescriptor peInDescr2 = new ProcessingElementInputDescriptor(
        "resource", true);
    peInDescr1.setArray(false);
    TupleSType sTypeIn1 = new TupleSType();
    sTypeIn1.addElement("a", new PrimitiveSType("primitiveSTypeDummyTestA"));
    sTypeIn1.addElement("b", new PrimitiveSType("primitiveSTypeDummyTestB"));
    SType sTypeIn2 = new PrimitiveSType("locator");
    peInDescr1.setSType(sTypeIn2);
    peInDescr2.setSType(sTypeIn1);

    inputs.add(peInDescr1);
View Full Code Here

        "peInDescr1");
    ProcessingElementInputDescriptor peInDescr2 = new ProcessingElementInputDescriptor(
        "resource", true);
    peInDescr1.setArray(false);
    TupleSType tupleList1 = new TupleSType();
    tupleList1.addElement("a", new PrimitiveSType("primitiveTupleListST"));
    ListSType sTypeIn1 = new ListSType(tupleList1);
    SType sTypeIn2 = new PrimitiveSType("locator");
    peInDescr1.setSType(sTypeIn2);
    peInDescr2.setSType(sTypeIn1);
View Full Code Here

    ProcessingElementOutputDescriptor peOutDescr1 = new ProcessingElementOutputDescriptor(
        "result");
    ProcessingElementOutputDescriptor peInDescr3 = new ProcessingElementOutputDescriptor(
        "result4");
    TupleSType tuple = new TupleSType();
    tuple.addElement("s", new PrimitiveSType("String"));
    SType sTypeIn3 = new ArraySType(tuple, 5);
    peInDescr3.setSType(sTypeIn3);
    outputs.add(peInDescr3);
    SType sTypeIn2 = new PrimitiveSType("String");
    peOutDescr1.setSType(sTypeIn2);
View Full Code Here

    ProcessingElementOutputDescriptor peOutDescr2 = new ProcessingElementOutputDescriptor(
        "result2");
    ProcessingElementOutputDescriptor peOutDescr3 = new ProcessingElementOutputDescriptor(
        "result3");
    TupleSType tuple2 = new TupleSType();
    tuple2.addElement("s2", new PrimitiveSType("String"));
    SType sTypeIn4 = new ListSType(tuple2);
    peOutDescr3.setSType(sTypeIn4);
    peOutDescr1.setSType(sTypeIn2);
    outputs.add(peOutDescr1);
    outputs.add(peOutDescr2);
View Full Code Here

    ProcessingElementInputDescriptor peInDescr2 = new ProcessingElementInputDescriptor(
        "resource", true);
    peInDescr1.setArray(false);
    TupleSType st1 = new TupleSType();
    TupleSType st2 = new TupleSType();
    st2.addElement("aa", new PrimitiveSType("aaStype"));
    st1.addElement("a", st2);
//    SType sTypeIn1 = new PrimitiveSType("DummyInputST1");
    SType sTypeIn2 = new PrimitiveSType("locator");
//    DType dtypeIn1 = new SimpleDType("DummyInputDType1");
//    DType dtypeIn2 = new SimpleDType("DummyInputDType2");
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.