Examples of BuildContext


Examples of org.drools.reteoo.builder.BuildContext

        final RuleBaseConfiguration configuration = new RuleBaseConfiguration();

        ReteooRuleBase ruleBase = (ReteooRuleBase) RuleBaseFactory
                .newRuleBase();
        BuildContext buildContext = new BuildContext(ruleBase, ruleBase
                .getReteooBuilder().getIdGenerator());

        this.node = new JoinNode(15, this.tupleSource, this.objectSource,
                new DefaultBetaConstraints(
                        new BetaNodeFieldConstraint[] { this.constraint },
View Full Code Here

Examples of org.drools.reteoo.builder.BuildContext

        final MockObjectSource objectSource = new MockObjectSource(1);
        final MockTupleSource tupleSource = new MockTupleSource(1);

        ReteooRuleBase ruleBase = (ReteooRuleBase) RuleBaseFactory
                .newRuleBase();
        BuildContext buildContext = new BuildContext(ruleBase, ruleBase
                .getReteooBuilder().getIdGenerator());
        final JoinNode joinNode = new JoinNode(2, tupleSource, objectSource,
                EmptyBetaConstraints.getInstance(),
                Behavior.EMPTY_BEHAVIOR_LIST, buildContext);
View Full Code Here

Examples of org.drools.reteoo.builder.BuildContext

        this.workingMemory = new ReteooWorkingMemory(1,
                (ReteooRuleBase) RuleBaseFactory.newRuleBase(conf));

        ReteooRuleBase ruleBase = (ReteooRuleBase) RuleBaseFactory
                .newRuleBase();
        BuildContext buildContext = new BuildContext(ruleBase, ruleBase
                .getReteooBuilder().getIdGenerator());
        buildContext.setTupleMemoryEnabled(false);
        buildContext.setObjectTypeNodeMemoryEnabled(false);

        // override setup, so its working in sequential mode
        this.node = new JoinNode(
                15,
                this.tupleSource,
View Full Code Here

Examples of org.drools.reteoo.builder.BuildContext

        final ReteooWorkingMemory workingMemory = new ReteooWorkingMemory(1,
                (ReteooRuleBase) RuleBaseFactory.newRuleBase());

        ReteooRuleBase ruleBase = (ReteooRuleBase) RuleBaseFactory
                .newRuleBase();
        BuildContext buildContext = new BuildContext(ruleBase, ruleBase
                .getReteooBuilder().getIdGenerator());

        final JoinNode joinNode = new JoinNode(1, this.tupleSource,
                this.objectSource, EmptyBetaConstraints.getInstance(),
                Behavior.EMPTY_BEHAVIOR_LIST, buildContext);
View Full Code Here

Examples of org.drools.reteoo.builder.BuildContext

    private BuildContext        buildContext;

    @Before
    public void setUp() {
        this.ruleBase = (ReteooRuleBase) RuleBaseFactory.newRuleBase();
        this.buildContext = new BuildContext( ruleBase,
                                              ((ReteooRuleBase) ruleBase).getReteooBuilder().getIdGenerator() );

        this.context = new PropagationContextImpl( 0,
                                                   PropagationContext.ASSERTION,
                                                   null,
View Full Code Here

Examples of org.drools.reteoo.builder.BuildContext

    private BuildContext buildContext;
   
    @Before
    public void setUp() throws Exception {
        this.ruleBase = ( ReteooRuleBase ) RuleBaseFactory.newRuleBase();
        this.buildContext = new BuildContext( ruleBase, ((ReteooRuleBase)ruleBase).getReteooBuilder().getIdGenerator() );
    }
View Full Code Here

Examples of org.drools.reteoo.builder.BuildContext

    }
   
    @Test
   
    public void testLeftInputAdapterNode() {
        BuildContext context = new BuildContext(ruleBase, ruleBase.getReteooBuilder().getIdGenerator() );
        final EntryPointNode entryPoint = new EntryPointNode( -1,
                                                              ruleBase.getRete(),
                                                              context );
        entryPoint.attach();
                       
View Full Code Here

Examples of org.drools.reteoo.builder.BuildContext

                                                                       PropagationContext.ASSERTION,
                                                                       null,
                                                                       null,
                                                                       null );
       
        BuildContext context = new BuildContext(ruleBase, ruleBase.getReteooBuilder().getIdGenerator() );
        final EntryPointNode entryPoint = new EntryPointNode( -1,
                                                              ruleBase.getRete(),
                                                              context );
        entryPoint.attach();
                       
View Full Code Here

Examples of org.drools.reteoo.builder.BuildContext

        str += "    otn1, java.lang.Integer;\n";
       
        NodeTestResult result = executeTest( str );
        Map<String, Object> map = result.context;

        BuildContext buildCtx = (BuildContext) map.get( ReteDslTestEngine.BUILD_CONTEXT );
        assertTrue(buildCtx.getRuleBase().getConfiguration().isLRUnlinkingEnabled());
    }
View Full Code Here

Examples of org.drools.reteoo.builder.BuildContext

    private BuildContext     buildContext;

    @Before
    public void setUp() throws Exception {
        ruleBase = (InternalRuleBase) RuleBaseFactory.newRuleBase();
        buildContext = new BuildContext( ruleBase,
                                         ((ReteooRuleBase) ruleBase).getReteooBuilder().getIdGenerator() );
    }
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.