Package eu.admire.dispel.types

Examples of eu.admire.dispel.types.PrimitiveSType


  }

  private void createSType() throws RegistrationFailedException {

    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


  }

  private void createSType() throws RegistrationFailedException {

    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

  }
 
  private void createSType() throws RegistrationFailedException {

    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

    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

    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

    // 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);

    // output
    ProcessingElementOutputDescriptor peOutDescr1 = new ProcessingElementOutputDescriptor(
        "output1");
    peOutDescr1.setSType(new PrimitiveSType("String"));
    DType dtypeOut = new SimpleDType(
        "http://www.admire-project.eu/ontologies/DataMiningOntology#SQLQuery");
    peOutDescr1.setDType(dtypeOut);
    outputs.add(peOutDescr1);
View Full Code Here

    // 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);

    // output
    ProcessingElementOutputDescriptor peOutDescr1 = new ProcessingElementOutputDescriptor(
        "output1");
    peOutDescr1.setSType(new PrimitiveSType("String"));
    DType dtypeOut = new SimpleDType(
        "http://www.admire-project.eu/ontologies/DataMiningOntology#SQLQuery");
    peOutDescr1.setDType(dtypeOut);
    outputs.add(peOutDescr1);
View Full Code Here

                        new DomainType(new SimpleDType())));
        mRegistry.register("MySType",
                new DispelObject(
                        "MySType",
                        DispelObjectType.STRUCTURAL_TYPE,
                        new StructuralType(new PrimitiveSType("Integer"))));
        DISPELGraphBuilder builder = runDISPEL(new StringReader(function));
        String dispel = FunctionToDISPEL.convert(builder.getFunctions().get("A"));
        System.out.println(dispel);
        runDISPEL(new StringReader(dispel));
        TestCase.assertFalse("Function DISPEL cannot be parsed.", mHasError);
View Full Code Here

    }
   
    @Override
    public void setPrimitive(String text)
    {
        mChildType = new PrimitiveSType(text);
    }
View Full Code Here

    }
   
    @Override
    public void setPrimitive(String text)
    {
        mType = new PrimitiveSType(text);
    }
View Full Code Here

TOP

Related Classes of eu.admire.dispel.types.PrimitiveSType

Copyright © 2018 www.massapicom. 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.