Package eu.admire.dispel.types.dtype

Examples of eu.admire.dispel.types.dtype.SimpleSemanticType


        if (mDomainType == null)
        {
            mDomainType = new SimpleDType();
        }
        ((DTypeRepresents)mDomainType).setRepresents(
                new SimpleSemanticType(namespace, localName, prefix));
    }
View Full Code Here


   
    public void testFreezingSQLDataSource() throws Exception
    {
        registerSemanticDType(
                "dispel.SQLqueryStatement",
                new SimpleSemanticType("dispel", "SQLQueryStatement", "dispel"));
        registerSemanticDType(
                "dispel.RelationalResult",
                new SimpleSemanticType("dispel", "RelationalResult", "dispel"));
        registerSemanticDType(
                "dispel.RDBuri",
                new SimpleSemanticType("dispel", "RDBuri", "dispel"));
        DISPELGraphBuilder builder = runDISPELFromFile(PATH + "ExampleFunctionWrappingConstantAsStream.dispel");
        assertTrue(!builder.getRegistered().isEmpty());
        RegisteredObject reg = builder.getRegistered().values().iterator().next();
        assertTrue(reg.getObject() instanceof Function);
        DispelObject function = new DispelObject(((Function)reg.getObject()).getName(), (Function)reg.getObject());
View Full Code Here

        assertNull(mError);
    }
   
    public void testDefiningLanguageTypes() throws Exception
    {
        registerSemanticDType("ErrorMessage", new SimpleSemanticType("dispel", "ErrorMessage", "dispel"));
        registerSemanticDType("JavascriptCode", new SimpleSemanticType("dispel", "JavascriptCode", "dispel"));
        DISPELGraphBuilder builder = runDISPELFromFile(PATH + "DefiningAndRegisteringLanguageTypes.dispel");
        Map<String, RegisteredObject> registered = builder.getRegistered();
        assertNull(mError);
        assertTrue(!registered.isEmpty());
        RegisteredObject reg = registered.get("eu.admire.ConverterPE");
View Full Code Here

        assertNull(mError);
    }

    public void testDefiningDomainTypes() throws Exception
    {
        registerSemanticDType("book.examples.image.Pixel", new SimpleSemanticType("dispel", "Pixel", "dispel"));
        registerSemanticDType("book.examples.brainimaging.Time",
                new SimpleSemanticType("dispel", "Time", "dispel"));
        registerSemanticDType("book.examples.brainimaging.Depth",
                new SimpleSemanticType("dispel", "Depth", "dispel"));
        registerSemanticDType("book.examples.brainimaging.Settings",
                new SimpleSemanticType("dispel", "Settings", "dispel"));
        DISPELGraphBuilder builder =
            runDISPELFromFile(PATH + "DefiningAndRegisteringDomainTypes.dispel");
        assertNull(mError);
        System.out.println(builder.getRegistered());
    }
View Full Code Here

    }

    public void testCombinerLanguageType() throws Exception
    {
        registerSemanticDType("JavascriptCode",
                new SimpleSemanticType("dispel", "JavascriptCode", "dispel"));
        DISPELGraphBuilder builder =
            runDISPELFromFile(PATH + "LanguageTypesCombinerAndGenericCombiner.dispel");
        mRegistry.registerProcessingElement("eu.admire.SomeProgrammableCombiner");
        Map<String, RegisteredObject> registered = builder.getRegistered();
        assertNull(mError);
View Full Code Here

    }

    public void testMakeNWayControlledMerge() throws Exception
    {
        registerSemanticDType("eu.admire.SortMergeControls",
                new SimpleSemanticType("dispel", "SortMergeControls", "dispel"));
        runDISPELFromFile(PATH + "makeNwayControlledMerge.dispel");
        assertNull(mError);
    }
View Full Code Here

    }
   
    public void testModifiers() throws Exception
    {
        registerSemanticDType("Query",
                new SimpleSemanticType("dispel", "Query", "dispel"));
        registerSemanticDType("ResultSet",
                new SimpleSemanticType("dispel", "ResultSet", "dispel"));
        registerSemanticDType("URI",
                new SimpleSemanticType("dispel", "URI", "dispel"));
        registerSemanticDType("SatelliteImage",
                new SimpleSemanticType("dispel", "SatelliteImage", "dispel"));
        registerSemanticDType("DistrictPopulation",
                new SimpleSemanticType("dispel", "DistrictPopulation", "dispel"));
        registerSemanticDType("NationalPopulation",
                new SimpleSemanticType("dispel", "NationalPopulation", "dispel"));
        DISPELGraphBuilder builder =
            runDISPELFromFile(PATH + "modifiers.dispel");
        assertNull(mError);
        Variable var = builder.getDispelExecutionState().getVariables().get("SQLQuery");
        assertTrue(var.getType() instanceof ProcessingElementTypeType);
View Full Code Here

        else
        {
            localName = text.substring(1, text.length()-1);
        }
        mRepresents =
                new SimpleSemanticType(namespace, localName, prefix);
    }
View Full Code Here

        SimpleTupleTypeConverter converter = new SimpleTupleTypeConverter();
        converter.setTypeConverter(mConverter);
        ProcessingElementInputDescriptor input = new ProcessingElementInputDescriptor("input");
        TupleDType tupleIn = new TupleDType();
        SimpleDType d = new SimpleDType();
        d.setRepresents(new SimpleSemanticType("", "tempInKelvin"));
        tupleIn.addElement("min", d);
        tupleIn.addElement("max", d);
        input.setDType(new CollectionDType(tupleIn, CollectionDType.LIST));
        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);
View Full Code Here

       if (mType == null)
       {
           mType = new SimpleDType();
       }
       ((DTypeRepresents)mType).setRepresents(
               new SimpleSemanticType(namespace, localName, prefix));
   }
View Full Code Here

TOP

Related Classes of eu.admire.dispel.types.dtype.SimpleSemanticType

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.