Package eu.admire.dispel.types

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


        "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);
View Full Code Here


        "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

    TupleSType tuple1 = new TupleSType();
    tuple1.setRest(true);
    peInDescr1.setSType(new PrimitiveSType("String"));
   
    TupleSType tuple2 = new TupleSType();
    tuple2.addElement("d", new PrimitiveSType("String"));
    tuple2.setRest(true);
//    peInDescr1.setSType(new ListSType(tuple2));

    DType dtype = new SimpleDType(
        "http://www.admire-project.eu/ontologies/DataMiningOntology#ColumnIndex");
View Full Code Here

    peInDescr2.setSType(new AnySType());

    // Inserting input sType Array of Tuples with two Primitive STypes and
    // rest
    TupleSType tuple1 = new TupleSType();
    tuple1.addElement("s", new PrimitiveSType("String"));
    tuple1.addElement("d", new PrimitiveSType("Double"));
    tuple1.setRest(true);
    SType sTypeIn3 = new ArraySType(tuple1, 5);
    peInDescr3.setSType(sTypeIn3);
View Full Code Here

    // Inserting input sType Array of Tuples with two Primitive STypes and
    // rest
    TupleSType tuple1 = new TupleSType();
    tuple1.addElement("s", new PrimitiveSType("String"));
    tuple1.addElement("d", new PrimitiveSType("Double"));
    tuple1.setRest(true);
    SType sTypeIn3 = new ArraySType(tuple1, 5);
    peInDescr3.setSType(sTypeIn3);

    // Inserting input array SType of primitive SType
View Full Code Here

    SType sTypeIn6 = new ListSType(new PrimitiveSType("Integer"));
    peInDescr6.setSType(sTypeIn6);

    // Inserting input sType tuple with one Primitive SType and rest
    TupleSType tuple2 = new TupleSType();
    tuple2.addElement("s3", new PrimitiveSType("Integer"));
    tuple2.setRest(true);
    peInDescr4.setSType(tuple2);

    DType dtype1 = new SimpleDType("ColumnIndex",
        "http://www.admire-project.eu/ontologies/DataMiningOntology#",
View Full Code Here

    peOutDescr3.setSType(tuple3);

    // inserting output String primitive stype
    peOutDescr1.setSType(sTypeIn2);
    TupleSType tuple4 = new TupleSType();
    tuple4.addElement("s4", new PrimitiveSType("String"));
    tuple4.addElement("i4", new PrimitiveSType("Integer"));
    tuple4.addElement("i5", new PrimitiveSType("Integer"));
    tuple4.setRest(true);

    // inserting output tuple
View Full Code Here

    // inserting output String primitive stype
    peOutDescr1.setSType(sTypeIn2);
    TupleSType tuple4 = new TupleSType();
    tuple4.addElement("s4", new PrimitiveSType("String"));
    tuple4.addElement("i4", new PrimitiveSType("Integer"));
    tuple4.addElement("i5", new PrimitiveSType("Integer"));
    tuple4.setRest(true);

    // inserting output tuple
    peOutDescr5.setSType(tuple4);
View Full Code Here

    // inserting output String primitive stype
    peOutDescr1.setSType(sTypeIn2);
    TupleSType tuple4 = new TupleSType();
    tuple4.addElement("s4", new PrimitiveSType("String"));
    tuple4.addElement("i4", new PrimitiveSType("Integer"));
    tuple4.addElement("i5", new PrimitiveSType("Integer"));
    tuple4.setRest(true);

    // inserting output tuple
    peOutDescr5.setSType(tuple4);
View Full Code Here

                    .getSType();
                if (tokens[8] != null & tokens[9] != null) {
                  if (tokens[9].equals("rest")) {
                    tuple.setRest(true);
                  } else {
                    tuple.addElement(tokens[8],
                        new PrimitiveSType(tokens[9]));
                  }
                }
                input.remove(tokens[2]);
                peInputDescriptor2.setSType(tuple);
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.