Examples of SimpleProcessingElementDescriptor


Examples of eu.admire.registry.pe.SimpleProcessingElementDescriptor

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

Examples of eu.admire.registry.pe.SimpleProcessingElementDescriptor

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

Examples of eu.admire.registry.pe.SimpleProcessingElementDescriptor

        {
            throw new TypeMismatchException(
                    "ProcessingElementTypeType", var.getValue());
        }
        ProcessingElementTypeType type = (ProcessingElementTypeType)var.getType();
        SimpleProcessingElementDescriptor descriptor = null;
        if (type.getDescriptor() != null)
        {
            descriptor =
                new SimpleProcessingElementDescriptor(null, type.getDescriptor(), null);
            descriptor.addSuperType(
                    mExecutionState.getNamespaceManager().resolve(text));
        }
        mType = new ProcessingElementTypeType(descriptor);
    }
View Full Code Here

Examples of eu.admire.registry.pe.SimpleProcessingElementDescriptor

        return type;
    }
   
    private ProcessingElementDescriptor getDescriptor()
    {
        SimpleProcessingElementDescriptor descriptor =
            new SimpleProcessingElementDescriptor(
                    mInputs.getInputDescriptors(),
                    mOutputs.getOutputDescriptors(),
                    null);
        if (mSupertype != null)
        {
            String qName =
                mExecutionState.getNamespaceManager().resolve(mSupertype);
            descriptor.addSuperType(qName);
        }
        return descriptor;
    }
View Full Code Here

Examples of eu.admire.registry.pe.SimpleProcessingElementDescriptor

        desc = new ProcessingElementInputDescriptor("expressions");
        inputs.add(desc);
        List<ProcessingElementOutputDescriptor> outputs =
            Arrays.asList(new ProcessingElementOutputDescriptor("result"));
        ProcessingElementDescriptor descriptor =
            new SimpleProcessingElementDescriptor(inputs, outputs, null);
        project.setDescriptor(descriptor);

        // columns that are mapped
        LiteralValuesNode columnNames = new LiteralValuesNode();
        // projection expressions
View Full Code Here

Examples of eu.admire.registry.pe.SimpleProcessingElementDescriptor

            newOutput.setDType(output.getDType());
            newOutput.setModifiers(
                    new ArrayList<ProcessingElementModifier>(output.getModifiers()));
            outputCopy.add(newOutput);
        }
        SimpleProcessingElementDescriptor result = new SimpleProcessingElementDescriptor(
                descriptor.getName(),
                inputCopy,
                outputCopy);
        for (String supertype : descriptor.getSuperType())
        {
            result.addSuperType(supertype);
        }
        return result;
    }
View Full Code Here

Examples of eu.admire.registry.pe.SimpleProcessingElementDescriptor

        registry.registerProcessingElement("eu.admire.A");
        registry.registerProcessingElement("eu.admire.C");
        registry.registerProcessingElement("eu.admire.D");
        registry.registerProcessingElement("eu.admire.E");
        ProcessingElementDescriptor desc =
            new SimpleProcessingElementDescriptor(
                    "B",
                    Collections.<ProcessingElementInputDescriptor>emptyList(),
                    Collections.<ProcessingElementOutputDescriptor>emptyList());
        String implementation = "use eu.admire.D; use eu.admire.E; D d = new D; E e = new E; d.out => e.in; " +
            "PE(<Connection in> => <Connection out>) B = PE(<Connection in=d.in> => <Connection out=e.out>);" +
View Full Code Here

Examples of eu.admire.registry.pe.SimpleProcessingElementDescriptor

        outputDesc = new ProcessingElementOutputDescriptor("out1");
        ListSType list = new ListSType(new ListSType(new PrimitiveSType("Real")));
        outputDesc.setSType(list);
        outputDescriptors.add(outputDesc);
        ProcessingElementDescriptor desc =
            new SimpleProcessingElementDescriptor(inputDescriptors, outputDescriptors, null);

        Graph graph = new Graph();
        ProcessingElementNode nodeA = new ProcessingElementNode("uk.org.ogsadai.SQLQuery");
        nodeA.setDescriptor(desc);
        graph.add(nodeA);
View Full Code Here

Examples of eu.admire.registry.pe.SimpleProcessingElementDescriptor

        TupleSType t = new TupleSType();
        t.addElement("el1", new PrimitiveSType("String"));
        t.addElement("el2", new PrimitiveSType("Integer"));
        inp.setSType(t);
        ProcessingElementDescriptor desc =
            new SimpleProcessingElementDescriptor(
                    Arrays.asList(inp),
                    Collections.<ProcessingElementOutputDescriptor>emptyList(),
                    null);
        a.setDescriptor(desc);
        ProcessingElementOutputDescriptor outp = new ProcessingElementOutputDescriptor("output");
        t = new TupleSType();
        t.setRest(true);
        outp.setSType(t);
        desc = new SimpleProcessingElementDescriptor(
                    Collections.<ProcessingElementInputDescriptor>emptyList(),
                    Arrays.asList(outp),
                    null);
        b.setDescriptor(desc);
        b.connectOutput("output", 0, a.getInput("input", 0));
View Full Code Here

Examples of eu.admire.registry.pe.SimpleProcessingElementDescriptor

        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(),
                    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);
        b.setDescriptor(desc);
        b.connectOutput("output", 0, a.getInput("input", 0));
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.