Package org.drools.agent.impl

Examples of org.drools.agent.impl.KnowledgeAgentImpl$ChangeSetState


                      scanner.getInterval() );

        KnowledgeBaseImpl kbase1 = (KnowledgeBaseImpl) context.getBean( "kbase1" );
        KnowledgeBaseImpl kbase2 = (KnowledgeBaseImpl) context.getBean( "kbase2" );

        KnowledgeAgentImpl kagent1 = (KnowledgeAgentImpl) context.getBean( "kagent1" );
        assertSame( kagent1.getKnowledgeBase(),
                    kbase1 );
        assertEquals( 0,
                      kagent1.getResourceDirectories().size() );
        assertFalse( kagent1.isNewInstance() );

        KnowledgeAgentImpl kagent2 = (KnowledgeAgentImpl) context.getBean( "kagent2" );
        assertSame( kagent2.getKnowledgeBase(),
                    kbase2 );
        assertEquals( 1,
                      kagent2.getResourceDirectories().size() );
        assertFalse( kagent2.isNewInstance() );

        KnowledgeAgentImpl kagent3 = (KnowledgeAgentImpl) context.getBean( "kagent3" );
        assertTrue( kagent3.isNewInstance() );

        StatelessKnowledgeSessionImpl ksession1 = (StatelessKnowledgeSessionImpl) context.getBean( "ksession1" );
        assertSame( kbase1.getRuleBase(),
                    ksession1.getRuleBase() );
        assertSame( kagent1,
View Full Code Here


                      scanner.getInterval() );

        KnowledgeBaseImpl kbase1 = (KnowledgeBaseImpl) context.getBean( "kbase1" );
        KnowledgeBaseImpl kbase2 = (KnowledgeBaseImpl) context.getBean( "kbase2" );

        KnowledgeAgentImpl kagent1 = (KnowledgeAgentImpl) context.getBean( "kagent1" );
        assertSame( kagent1.getKnowledgeBase(),
                    kbase1 );
        assertEquals( 0,
                      kagent1.getResourceDirectories().size() );
        assertFalse( kagent1.isNewInstance() );
        assertFalse( kagent1.isUseKBaseClassLoaderForCompiling() );

        KnowledgeAgentImpl kagent2 = (KnowledgeAgentImpl) context.getBean( "kagent2" );
        assertSame( kagent2.getKnowledgeBase(),
                    kbase2 );
        assertEquals( 1,
                      kagent2.getResourceDirectories().size() );
        assertFalse( kagent2.isNewInstance() );
        assertFalse( kagent2.isUseKBaseClassLoaderForCompiling() );

        KnowledgeAgentImpl kagent3 = (KnowledgeAgentImpl) context.getBean( "kagent3" );
        assertTrue( kagent3.isNewInstance() );
        assertTrue( kagent3.isUseKBaseClassLoaderForCompiling() );

        StatelessKnowledgeSessionImpl ksession1 = (StatelessKnowledgeSessionImpl) context.getBean( "ksession1" );
        assertSame( kbase1.getRuleBase(),
                    ksession1.getRuleBase() );
        assertSame( kagent1,
View Full Code Here

                      scanner.getInterval() );

        KnowledgeBaseImpl kbase1 = (KnowledgeBaseImpl) context.getBean( "kbase1" );
        KnowledgeBaseImpl kbase2 = (KnowledgeBaseImpl) context.getBean( "kbase2" );

        KnowledgeAgentImpl kagent1 = (KnowledgeAgentImpl) context.getBean( "kagent1" );
        assertSame( kagent1.getKnowledgeBase(),
                    kbase1 );
        assertEquals( 0,
                      kagent1.getResourceDirectories().size() );
        assertFalse( kagent1.isNewInstance() );
        assertFalse( kagent1.isUseKBaseClassLoaderForCompiling() );

        KnowledgeAgentImpl kagent2 = (KnowledgeAgentImpl) context.getBean( "kagent2" );
        assertSame( kagent2.getKnowledgeBase(),
                    kbase2 );
        assertEquals( 1,
                      kagent2.getResourceDirectories().size() );
        assertFalse( kagent2.isNewInstance() );
        assertFalse( kagent2.isUseKBaseClassLoaderForCompiling() );

        KnowledgeAgentImpl kagent3 = (KnowledgeAgentImpl) context.getBean( "kagent3" );
        assertTrue( kagent3.isNewInstance() );
        assertTrue( kagent3.isUseKBaseClassLoaderForCompiling() );

        StatelessKnowledgeSessionImpl ksession1 = (StatelessKnowledgeSessionImpl) context.getBean( "ksession1" );
        assertSame( kbase1.getRuleBase(),
                    ksession1.getRuleBase() );
        assertSame( kagent1,
View Full Code Here

                      scanner.getInterval() );

        KnowledgeBaseImpl kbase1 = (KnowledgeBaseImpl) context.getBean( "kbase1" );
        KnowledgeBaseImpl kbase2 = (KnowledgeBaseImpl) context.getBean( "kbase2" );

        KnowledgeAgentImpl kagent1 = (KnowledgeAgentImpl) context.getBean( "kagent1" );
        assertSame( kagent1.getKnowledgeBase(),
                    kbase1 );
        assertEquals( 0,
                      kagent1.getResourceDirectories().size() );
        assertFalse( kagent1.isNewInstance() );
        assertFalse( kagent1.isUseKBaseClassLoaderForCompiling() );

        KnowledgeAgentImpl kagent2 = (KnowledgeAgentImpl) context.getBean( "kagent2" );
        assertSame( kagent2.getKnowledgeBase(),
                    kbase2 );
        assertEquals( 1,
                      kagent2.getResourceDirectories().size() );
        assertFalse( kagent2.isNewInstance() );
        assertFalse( kagent2.isUseKBaseClassLoaderForCompiling() );

        KnowledgeAgentImpl kagent3 = (KnowledgeAgentImpl) context.getBean( "kagent3" );
        assertTrue( kagent3.isNewInstance() );
        assertTrue( kagent3.isUseKBaseClassLoaderForCompiling() );

        StatelessKnowledgeSessionImpl ksession1 = (StatelessKnowledgeSessionImpl) context.getBean( "ksession1" );
        assertSame( kbase1.getRuleBase(),
                    ksession1.getRuleBase() );
        assertSame( kagent1,
View Full Code Here

TOP

Related Classes of org.drools.agent.impl.KnowledgeAgentImpl$ChangeSetState

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.