Examples of SType


Examples of eu.admire.dispel.types.SType

    TupleSType tuple = new TupleSType();
    tuple.addElement("s", new PrimitiveSType("String"));
    tuple.addElement("d", new PrimitiveSType("Double"));
    tuple.setRest(true);
    SType listOfTuplesType = new ListSType(tuple);
    SType listOfPrimitiveSType = new ListSType(new PrimitiveSType("Real"));
    SType arrayOfTuplesType = new ArraySType(tuple, 5);
    SType arrayOfPrimitiveSType = new ArraySType(new PrimitiveSType("Real"), 5);
    SType arrayOfAnySType = new ArraySType(new AnySType(), 5);
   
    registry.registerSType(sTypeName, arrayOfAnySType);
  }
View Full Code Here

Examples of eu.admire.dispel.types.SType

    TupleSType tuple = new TupleSType();
    tuple.addElement("s", new PrimitiveSType("String"));
    tuple.addElement("d", new PrimitiveSType("Double"));
    tuple.setRest(true);
    SType listOfTuplesType = new ListSType(tuple);
    SType listOfPrimitiveSType = new ListSType(new PrimitiveSType("Real"));
    SType arrayOfTuplesType = new ArraySType(tuple, 5);
    SType arrayOfPrimitiveSType = new ArraySType(new PrimitiveSType("Real"), 5);
    SType arrayOfAnySType = new ArraySType(new AnySType(), 5);
   
    registry.registerSType(sTypeName, listOfTuplesType);
  }
View Full Code Here

Examples of eu.admire.dispel.types.SType

    TupleSType tuple = new TupleSType();
    tuple.addElement("s", new PrimitiveSType("String"));
    tuple.addElement("d", new PrimitiveSType("Double"));
    tuple.setRest(true);
    SType listOfTuplesType = new ListSType(tuple);
    SType listOfPrimitiveSType = new ListSType(new PrimitiveSType("Real"));
    SType arrayOfTuplesType = new ArraySType(tuple, 5);
    SType arrayOfPrimitiveSType = new ArraySType(new PrimitiveSType("Real"), 5);
    SType arrayOfAnySType = new ArraySType(new AnySType(), 5);
   
    registry.registerSType(sTypeName, arrayOfAnySType);
  }
View Full Code Here

Examples of eu.admire.dispel.types.SType

    ProcessingElementInputDescriptor peInDescr1 = new ProcessingElementInputDescriptor(
        "classifier");
    ProcessingElementInputDescriptor peInDescr2 = new ProcessingElementInputDescriptor(
        "data");
    peInDescr1.setArray(false);
    SType sTypeIn1 = new PrimitiveSType("classifierST");
    SType sTypeIn2 = new PrimitiveSType("dataST");
    DType dtypeIn1 = new SimpleDType("classifierDT");
    DType dtypeIn2 = new SimpleDType("dataDT");
    peInDescr1.setSType(sTypeIn1);
    peInDescr1.setDType(dtypeIn1);
    peInDescr2.setSType(sTypeIn2);
    peInDescr2.setDType(dtypeIn2);

//    inputs.add(peInDescr1);
//    inputs.add(peInDescr2);

    ProcessingElementOutputDescriptor peOutDescr1 = new ProcessingElementOutputDescriptor(
        "result");
    SType sTypeOut1 = new PrimitiveSType("result");
    DType dtypeOut1 = new SimpleDType("DummyOutputDType1");
    peOutDescr1.setSType(sTypeOut1);
    peOutDescr1.setDType(dtypeOut1);
//    peOutDescr2.setSType(sTypeOut2);
//    peOutDescr2.setDType(dtypeOut2);
View Full Code Here

Examples of eu.admire.dispel.types.SType

    ProcessingElementInputDescriptor peInDescr1 = new ProcessingElementInputDescriptor(
        "classifier");
    ProcessingElementInputDescriptor peInDescr2 = new ProcessingElementInputDescriptor(
        "data");
    peInDescr1.setArray(false);
    SType sTypeIn1 = new PrimitiveSType("classifierST");
    SType sTypeIn2 = new PrimitiveSType("dataST");
    DType dtypeIn1 = new SimpleDType("classifierDT");
    DType dtypeIn2 = new SimpleDType("dataDT");
    peInDescr1.setSType(sTypeIn1);
    peInDescr1.setDType(dtypeIn1);
    peInDescr2.setSType(sTypeIn2);
    peInDescr2.setDType(dtypeIn2);

//    inputs.add(peInDescr1);
//    inputs.add(peInDescr2);

    ProcessingElementOutputDescriptor peOutDescr1 = new ProcessingElementOutputDescriptor(
        "result");
    SType sTypeOut1 = new PrimitiveSType("result");
    DType dtypeOut1 = new SimpleDType("DummyOutputDType1");
    peOutDescr1.setSType(sTypeOut1);
    peOutDescr1.setDType(dtypeOut1);
//    peOutDescr2.setSType(sTypeOut2);
//    peOutDescr2.setDType(dtypeOut2);
View Full Code Here

Examples of eu.admire.dispel.types.SType

    // input
    ProcessingElementInputDescriptor peInDescr1 = new ProcessingElementInputDescriptor(
        "input", true);
    peInDescr1.setArray(false);
    SType sTypeIn1 = new PrimitiveSType("String");
    peInDescr1.setSType(sTypeIn1);
    DType dtypeIn = new SimpleDType(
        "http://www.admire-project.eu/ontologies/DataMiningOntology#SQLStatement");
    peInDescr1.setDType(dtypeIn);
    inputs.add(peInDescr1);
View Full Code Here

Examples of eu.admire.dispel.types.SType

    // input
    ProcessingElementInputDescriptor peInDescr1 = new ProcessingElementInputDescriptor(
        "input", true);
    peInDescr1.setArray(false);
    SType sTypeIn1 = new PrimitiveSType("String");
    peInDescr1.setSType(sTypeIn1);
    DType dtypeIn = new SimpleDType(
        "http://www.admire-project.eu/ontologies/DataMiningOntology#SQLStatement");
    peInDescr1.setDType(dtypeIn);
    inputs.add(peInDescr1);
View Full Code Here

Examples of eu.admire.dispel.types.SType

        throws UnknownTypeException, TypeMismatchException
    {
        switch (context)
        {
        case STYPE:
            SType stype = ((STypeStrategy)strategy).getType();
            mType = new StructuralType(stype);
            break;
        case WITH_ASSERTION:
            WithAssertionStrategy assertion = (WithAssertionStrategy) strategy;
            if (assertion.getAnnotationKey() != null)
View Full Code Here

Examples of eu.admire.dispel.types.SType

            {
                LiteralValuesNode literal = (LiteralValuesNode)requestNode;
                ProcessingElementOutputDescriptor outputDesc =
                    literal.getOutputDescriptor();
                assertTrue(outputDesc.getSType() instanceof ListSType);
                SType childType = ((ListSType)outputDesc.getSType()).getChildType();
                assertTrue(childType instanceof TupleSType);
                Map<String, SType> elements = ((TupleSType)childType).getElements();
                SType t = elements.get("i");
                assertTrue(t instanceof PrimitiveSType);
                assertEquals("Element i has wrong SType,", "Integer", ((PrimitiveSType)t).getName());
                t = elements.get("s");
                assertTrue(t instanceof PrimitiveSType);
                assertEquals("Element s has wrong SType,", "String", ((PrimitiveSType)t).getName());
View Full Code Here

Examples of eu.admire.dispel.types.SType

        RegisteredObject reg = builder.getRegistered().get("Transform");
        assertNotNull(reg);
        assertTrue(reg.getObject() instanceof ProcessingElementType);
        ProcessingElementDescriptor descriptor =
            ((ProcessingElementType)reg.getObject()).getDescriptor();
        SType typeIn = descriptor.getInput("in").getSType();
        assertTrue(typeIn instanceof STypeReference);
        SType typeOut = descriptor.getOutput("out").getSType();
        assertTrue(typeOut instanceof STypeReference);
        assertEquals(typeIn, typeOut);
    }
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.