Package eu.admire.dispel.engine

Examples of eu.admire.dispel.engine.InMemoryAdmireRegistry


        TestCase.assertFalse("Function DISPEL cannot be parsed.", mHasError);
    }
    @Test
    public void testCrossValidationFunction() throws Exception
    {
        mRegistry = new InMemoryAdmireRegistry(
                new File("test/unit/eu/admire/dispel/engine/ProcessingElementRegistration.dispel"));
        DISPELGraphBuilder builder = runDISPEL(
                new FileReader("test/unit/eu/admire/dispel/parser/v4/converter/RegisterCrossValidationFunctions.dispel"));
        for (Entry<String, RegisteredObject> reg : builder.getRegistered().entrySet())
        {
View Full Code Here


    protected void setUp() throws Exception
    {
        super.setUp();
        mError = null;
       
        mRegistry = new InMemoryAdmireRegistry();
       
        mRegistry.registerProcessingElement("a.A");
        mRegistry.registerProcessingElement("b.B");
        mRegistry.registerProcessingElement("uk.org.ogsadai.Echo");
        mRegistry.registerProcessingElement("uk.org.ogsadai.SQLQuery");
View Full Code Here

    @Before
    public void setUp() throws Exception
    {
        mError = null;
        mRegistry = new InMemoryAdmireRegistry();
    }    
View Full Code Here

    }
   
    public void testFunctionCreatingPE() throws Exception
    {
        DISPELCompiler compiler = new DISPELCompiler();
        InMemoryAdmireRegistry registry = new InMemoryAdmireRegistry();
        registry.registerProcessingElement("eu.admire.Results");
        registry.registerProcessingElement("uk.org.ogsadai.Echo");
        DISPELGraphBuilder builder =
            new DISPELGraphBuilder(registry, new SimpleDispelOptimiser());
        compiler.setRequestBuilder(builder);
        compiler.parse(new FileReader(DISPEL_PATH + "FunctionCreatingPE.dispel"));
        assertTrue(!builder.getSubmittedGraphs().isEmpty());
View Full Code Here

   
    @Test
    public void testSimple() throws Exception
    {
        InsertCompositeProcessingElements insert = new InsertCompositeProcessingElements();
        InMemoryAdmireRegistry registry = new InMemoryAdmireRegistry();
        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>);" +
            "register B;";
        registry.registerProcessingElement(desc, implementation);
        insert.setAdmireRegistry(registry);
        insert.setDispelOptimiser(new SimpleDispelOptimiser());
        RequestContext context = new MockRequestContext();
        Graph graph = new Graph();
        ProcessingElementNode a = new ProcessingElementNode("eu.admire.A");
View Full Code Here

    @Test
    public void testUnregistered() throws Exception
    {
        InsertCompositeProcessingElements insert = new InsertCompositeProcessingElements();
        InMemoryAdmireRegistry registry = new InMemoryAdmireRegistry();
        insert.setAdmireRegistry(registry);
        insert.setDispelOptimiser(new SimpleDispelOptimiser());
        RequestContext context = new MockRequestContext();
        Graph graph = new Graph();
        ProcessingElementNode a = new ProcessingElementNode("eu.admire.A");
View Full Code Here

        }
    }
   
    public void testDuplicateConnection() throws Exception
    {
        InMemoryAdmireRegistry registry = new InMemoryAdmireRegistry();
        registry.registerProcessingElement("a.A");
        registry.registerProcessingElement("eu.admire.Results");
        DISPELCompiler compiler = new DISPELCompiler();
        DISPELGraphBuilder builder =
            new DISPELGraphBuilder(registry, new SimpleDispelOptimiser());
        compiler.setRequestBuilder(builder);
        compiler.addErrorListener(new ErrorListener()
View Full Code Here

TOP

Related Classes of eu.admire.dispel.engine.InMemoryAdmireRegistry

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.