Examples of ProcessingElementOutputDescriptor


Examples of eu.admire.registry.pe.ProcessingElementOutputDescriptor

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

    outputs.add(peOutDescr1);
View Full Code Here

Examples of eu.admire.registry.pe.ProcessingElementOutputDescriptor

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

    outputs.add(peOutDescr1);
View Full Code Here

Examples of eu.admire.registry.pe.ProcessingElementOutputDescriptor

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

    Map<String, String> metadataMap = new HashMap<String, String>();
    metadataMap.put("@author", "EPCC, UPM");
    metadataMap.put("@organisation", "es.upm, epcc.ed.ac.uk");
View Full Code Here

Examples of eu.admire.registry.pe.ProcessingElementOutputDescriptor

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

    Map<String, String> metadataMap = new HashMap<String, String>();
    metadataMap.put("author", "EPCC, UPM");
    metadataMap.put("organisation", "es.upm, epcc.ed.ac.uk");
View Full Code Here

Examples of eu.admire.registry.pe.ProcessingElementOutputDescriptor

        for (RequestNode requestNode : graph.getNodes())
        {
            if (requestNode instanceof LiteralValuesNode)
            {
                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());
View Full Code Here

Examples of eu.admire.registry.pe.ProcessingElementOutputDescriptor

    }
   
    public void testPEWithRenameConnection() throws Exception
    {
        ProcessingElementInputDescriptor input = new ProcessingElementInputDescriptor("expression");
        ProcessingElementOutputDescriptor output = new ProcessingElementOutputDescriptor("data");
        ProcessingElementDescriptor inputDescriptor =
            new SimpleProcessingElementDescriptor("uk.org.ogsadai.SQLQuery",
                    Collections.singletonList(input),
                    Collections.singletonList(output));
        mRegistry.registerProcessingElement(inputDescriptor, null);
View Full Code Here

Examples of eu.admire.registry.pe.ProcessingElementOutputDescriptor

    }

    @Test
    public void testInstanceWithTypeAssertion() throws Exception
    {
        ProcessingElementOutputDescriptor data = new ProcessingElementOutputDescriptor("data");
        ProcessingElementDescriptor sqlQuery =
            new SimpleProcessingElementDescriptor(
                    "SQLQuery",
                    Arrays.<ProcessingElementInputDescriptor>asList(),
                    Arrays.asList(data),
View Full Code Here

Examples of eu.admire.registry.pe.ProcessingElementOutputDescriptor

    }

    @Test
    public void testInstanceWithTypeAndRename() throws Exception
    {
        ProcessingElementOutputDescriptor data = new ProcessingElementOutputDescriptor("data");
        ProcessingElementDescriptor sqlQuery =
            new SimpleProcessingElementDescriptor(
                    "SQLQuery",
                    Arrays.<ProcessingElementInputDescriptor>asList(),
                    Arrays.asList(data),
View Full Code Here

Examples of eu.admire.registry.pe.ProcessingElementOutputDescriptor

    }

    @Test
    public void testInstanceWithAnnotationAndTypes() throws Exception
    {
        ProcessingElementOutputDescriptor data = new ProcessingElementOutputDescriptor("data");
        ProcessingElementDescriptor sqlQuery =
            new SimpleProcessingElementDescriptor(
                    "SQLQuery",
                    Arrays.<ProcessingElementInputDescriptor>asList(),
                    Arrays.asList(data),
View Full Code Here

Examples of eu.admire.registry.pe.ProcessingElementOutputDescriptor

            }
            input.getModifiers().addAll(typeAssertion.getModifiers());
        }
        else
        {
            ProcessingElementOutputDescriptor output =
                descriptor.getOutput(typeAssertion.getName());
            if (output != null)
            {
                if (typeAssertion.getRename() != null)
                {
                    ProcessingElementOutputDescriptor oldOutput = output;
                    output = new ProcessingElementOutputDescriptor(
                            typeAssertion.getRename());
                    output.setSType(oldOutput.getSType());
                    output.setDType(oldOutput.getDType());
                    output.setArray(oldOutput.isArray());
                    output.setModifiers(oldOutput.getModifiers());
                    descriptor.getOutputs().remove(oldOutput);
                    descriptor.getOutputs().add(output);
                }
                if (typeAssertion.getSType() != null)
                {
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.