Examples of ProcessingElementOutputDescriptor


Examples of eu.admire.registry.pe.ProcessingElementOutputDescriptor

            mInputs.put(ioStrategy.getConnectionID(), map);
        }
            break;
        case OUTPUT_DECLARATION:
        {
            ProcessingElementOutputDescriptor descriptor =
                new ProcessingElementOutputDescriptor(ioStrategy.getConnectionID());
            descriptor.setSType(ioStrategy.getSType());
            descriptor.setDType(ioStrategy.getDType());
            descriptor.setArray(ioStrategy.isArray());
            mOutputDesc.add(descriptor);
           
            Map<Integer, Connection> map;
            if (ioStrategy.isArray())
            {
View Full Code Here

Examples of eu.admire.registry.pe.ProcessingElementOutputDescriptor

            break;
        }
        case OUTPUT_DECLARATION:
        {
            IOStrategy output = (IOStrategy)strategy;
            ProcessingElementOutputDescriptor descriptor =
                new ProcessingElementOutputDescriptor(output.getConnectionID());
            descriptor.setSType(output.getSType());
            descriptor.setDType(output.getDType());
            descriptor.setArray(output.isArray());
            mOutputs.add(descriptor);
            break;
        }
        }
    }
View Full Code Here

Examples of eu.admire.registry.pe.ProcessingElementOutputDescriptor

    }
   
    private ProcessingElementOutputDescriptor getOutputDescriptor(
            RequestNode node, String outputName)
    {
        ProcessingElementOutputDescriptor result = null;
        if (node instanceof ProcessingElementNode)
        {
            ProcessingElementNode pe = (ProcessingElementNode)node;
            ProcessingElementDescriptor descriptor =
                pe.getProcessingElementDescriptor();
View Full Code Here

Examples of eu.admire.registry.pe.ProcessingElementOutputDescriptor

        desc = new ProcessingElementInputDescriptor("resultColumnNames");
        inputs.add(desc);
        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
View Full Code Here

Examples of eu.admire.registry.pe.ProcessingElementOutputDescriptor

        }
        List<ProcessingElementOutputDescriptor> outputCopy =
            new ArrayList<ProcessingElementOutputDescriptor>();
        for (ProcessingElementOutputDescriptor output : descriptor.getOutputs())
        {
            ProcessingElementOutputDescriptor newOutput =
                new ProcessingElementOutputDescriptor(output.getName());
            newOutput.setArray(output.isArray());
            newOutput.setSType(output.getSType());
            newOutput.setDType(output.getDType());
            newOutput.setModifiers(
                    new ArrayList<ProcessingElementModifier>(output.getModifiers()));
            outputCopy.add(newOutput);
        }
        SimpleProcessingElementDescriptor result = new SimpleProcessingElementDescriptor(
                descriptor.getName(),
View Full Code Here

Examples of eu.admire.registry.pe.ProcessingElementOutputDescriptor

                }
                for (Entry<Integer, Connection> connection : input.entrySet())
                {
                    RequestNode source = connection.getValue().getSource();
                    String name = connection.getValue().getSourceOutputName();
                    ProcessingElementOutputDescriptor outputDescriptor =
                        getOutputDescriptor(source, name);
                    try
                    {
                        RequestNode converter =
                            mTypeChecker.checkCompatibility(
View Full Code Here

Examples of eu.admire.registry.pe.ProcessingElementOutputDescriptor

        tuple.setRest(true);
        inputDesc.setSType(tuple);
        inputDescriptors.add(inputDesc);
        List<ProcessingElementOutputDescriptor> outputDescriptors =
            new ArrayList<ProcessingElementOutputDescriptor>();
        ProcessingElementOutputDescriptor outputDesc = new ProcessingElementOutputDescriptor("in1");
        outputDesc.setSType(new PrimitiveSType("mytype"));
        outputDescriptors.add(outputDesc);
        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();
View Full Code Here

Examples of eu.admire.registry.pe.ProcessingElementOutputDescriptor

        TupleDType tupleOut = new TupleDType();
        d = new SimpleDType();
        d.setRepresents(new SimpleSemanticType("", "tempInCelsius"));
        tupleOut.addElement("min", d);
        tupleOut.addElement("max", d);
        ProcessingElementOutputDescriptor output = new ProcessingElementOutputDescriptor("output");
        output.setDType(new CollectionDType(tupleOut, CollectionDType.LIST));
        RequestNode result = converter.checkCompatibility(output, input);

        TestCase.assertTrue(result instanceof CompositeProcessingElement);
        CompositeProcessingElement composite = (CompositeProcessingElement)result;
        List<RequestNodeInput> targets = composite.getInput("input", 0).getTargets();
View Full Code Here

Examples of eu.admire.registry.pe.ProcessingElementOutputDescriptor

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

Examples of eu.admire.registry.pe.ProcessingElementOutputDescriptor

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