Package eu.admire.registry.pe

Examples of eu.admire.registry.pe.SimpleProcessingElementDescriptor


//    peOutDescr2.setSType(sTypeOut2);
//    peOutDescr2.setDType(dtypeOut2);

    outputs.add(peOutDescr1);

    ProcessingElementDescriptor descriptor = new SimpleProcessingElementDescriptor(
        peName, inputs, outputs);

    Map<String, Set<Parameter>> inputElementDescriptor = null;
    inputElementDescriptor = new HashMap<String, Set<Parameter>>();
    String property1 = "containsConnection";
View Full Code Here


//    peOutDescr2.setSType(sTypeOut2);
//    peOutDescr2.setDType(dtypeOut2);

    outputs.add(peOutDescr1);

    ProcessingElementDescriptor descriptor = new SimpleProcessingElementDescriptor(
        peName, inputs, outputs);

    Map<String, Set<Parameter>> inputElementDescriptor = null;
    inputElementDescriptor = new HashMap<String, Set<Parameter>>();
    String property1 = "containsConnection";
View Full Code Here

    metadataMap.put("@organisation", "es.upm, epcc.ed.ac.uk");
    metadataMap.put("@description",
        "this is a description of a converter PE");
    metadataMap.put("@convertor", "ConvertThisPls");

    descriptor = new SimpleProcessingElementDescriptor(peName, inputs,
        outputs);
    descriptor.setMetadata(metadataMap);
   
    registry.registerProcessingElement(descriptor, "PE");
  }
View Full Code Here

    metadataMap.put("organisation", "es.upm, epcc.ed.ac.uk");
    metadataMap.put("description",
        "this is a description of a converter PE");
    metadataMap.put("convertor", "ConvertThisPls");

    descriptor = new SimpleProcessingElementDescriptor(peName, inputs,
        outputs);
    descriptor.setMetadata(metadataMap);
   
    registry.registerProcessingElement(descriptor, "PE");
  }
View Full Code Here

    public void testPEWithConnectionTypeAssertion() throws Exception
    {
        ProcessingElementInputDescriptor input = new ProcessingElementInputDescriptor("data");
        input.setSType(new ListSType(AnySType.INSTANCE));
        ProcessingElementDescriptor inputDescriptor =
            new SimpleProcessingElementDescriptor("example.MyPE",
                    Collections.singletonList(input),
                    Collections.<ProcessingElementOutputDescriptor>emptyList());
        mRegistry.registerProcessingElement(inputDescriptor, null);
        DISPELGraphBuilder builder = runDISPEL(
                "package test {" +
View Full Code Here

    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);
        DISPELGraphBuilder builder = runDISPEL(
                "use uk.org.ogsadai.SQLQuery;" +
View Full Code Here

    public void testLTypeExample() throws Exception
    {
        mRegistry.registerProcessingElement("uk.org.ogsadai.SQLQuery");
        ProcessingElementInputDescriptor inp = new ProcessingElementInputDescriptor("inputs");
        ProcessingElementDescriptor desc =
            new SimpleProcessingElementDescriptor(Arrays.asList(inp),
                    Arrays.<ProcessingElementOutputDescriptor>asList(),
                    null);
        ProcessingElementType peType = new ProcessingElementType("uk.org.ogsadai.ListConcatenate");
        peType.setDescriptor(desc);
        mRegistry.registerProcessingElement(peType);
View Full Code Here

        {
            ProcessingElementType used = (ProcessingElementType) type;
            ProcessingElementType peType =
                new ProcessingElementType(used.getImplementation());
            peType.setName(used.getName());
            mDescriptor = new SimpleProcessingElementDescriptor(
                    type.getName(),
                    TypeUtilities.cloneDescriptor(
                            ((ProcessingElementType)type).getDescriptor()),
                    null);
            peType.setDescriptor(mDescriptor);
View Full Code Here

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

    @Test
    public void testInstanceWithTypeAssertion() 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

TOP

Related Classes of eu.admire.registry.pe.SimpleProcessingElementDescriptor

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.