Examples of evaluateNetwork()


Examples of org.drools.core.phreak.RuleExecutor.evaluateNetwork()

            while ( !eager.isEmpty() ) {
                RuleAgendaItem item = eager.removeFirst();
                evaluateQueriesForRule(item);
                RuleExecutor ruleExecutor = item.getRuleExecutor();
                ruleExecutor.flushTupleQueue(ruleExecutor.getPathMemory().getStreamQueue());
                ruleExecutor.evaluateNetwork(this.workingMemory);
            }
        }
    }

    private void evaluateQueriesForRule(RuleAgendaItem item) {
View Full Code Here

Examples of org.drools.core.phreak.RuleExecutor.evaluateNetwork()

            for (QueryImpl query : rule.getDependingQueries()) {
                RuleAgendaItem queryAgendaItem = queries.remove(query);
                if (queryAgendaItem != null) {
                    RuleExecutor ruleExecutor = queryAgendaItem.getRuleExecutor();
                    ruleExecutor.flushTupleQueue(ruleExecutor.getPathMemory().getStreamQueue());
                    ruleExecutor.evaluateNetwork(this.workingMemory);
                }
            }
        }
    }
View Full Code Here

Examples of org.drools.core.phreak.RuleExecutor.evaluateNetwork()

    public void evaluateEagerList() {
        synchronized (eager) {
            while ( !eager.isEmpty() ) {
                RuleExecutor ruleExecutor = eager.removeFirst().getRuleExecutor();
                ruleExecutor.flushTupleQueue(ruleExecutor.getPathMemory().getStreamQueue());
                ruleExecutor.evaluateNetwork(this.workingMemory);
            }
        }
    }

    public int sizeOfRuleFlowGroup(String name) {
View Full Code Here

Examples of org.drools.core.phreak.RuleExecutor.evaluateNetwork()

    public void evaluateEagerList() {
        synchronized (eager) {
            while ( !eager.isEmpty() ) {
                RuleExecutor ruleExecutor = eager.removeFirst().getRuleExecutor();
                ruleExecutor.flushTupleQueue(ruleExecutor.getPathMemory().getStreamQueue());
                ruleExecutor.evaluateNetwork(this.workingMemory);
            }
        }
    }

    public int sizeOfRuleFlowGroup(String name) {
View Full Code Here

Examples of org.drools.core.phreak.RuleExecutor.evaluateNetwork()

    public void evaluateEagerList() {
        synchronized (eager) {
            while ( !eager.isEmpty() ) {
                RuleExecutor ruleExecutor = eager.removeFirst().getRuleExecutor();
                ruleExecutor.flushTupleQueue(ruleExecutor.getPathMemory().getStreamQueue());
                ruleExecutor.evaluateNetwork(this.workingMemory);
            }
        }
    }

    public int sizeOfRuleFlowGroup(String name) {
View Full Code Here

Examples of org.drools.core.phreak.RuleExecutor.evaluateNetwork()

            while ( !eager.isEmpty() ) {
                RuleAgendaItem item = eager.removeFirst();
                evaluateQueriesForRule(item);
                RuleExecutor ruleExecutor = item.getRuleExecutor();
                ruleExecutor.flushTupleQueue(ruleExecutor.getPathMemory().getStreamQueue());
                ruleExecutor.evaluateNetwork(this.workingMemory);
            }
        }
    }

    private void evaluateQueriesForRule(RuleAgendaItem item) {
View Full Code Here

Examples of org.drools.core.phreak.RuleExecutor.evaluateNetwork()

            for (QueryImpl query : rule.getDependingQueries()) {
                RuleAgendaItem queryAgendaItem = queries.remove(query);
                if (queryAgendaItem != null) {
                    RuleExecutor ruleExecutor = queryAgendaItem.getRuleExecutor();
                    ruleExecutor.flushTupleQueue(ruleExecutor.getPathMemory().getStreamQueue());
                    ruleExecutor.evaluateNetwork(this.workingMemory);
                }
            }
        }
    }
View Full Code Here

Examples of org.drools.core.phreak.RuleNetworkEvaluatorActivation.evaluateNetwork()

            List<PathMemory> rmems =  lmem.getSegmentMemory().getPathMemories();
            for ( int i = 0, length = rmems.size(); i < length; i++ ) {
                PathMemory rm = rmems.get( i );

                RuleNetworkEvaluatorActivation evaluator = agenda.createRuleNetworkEvaluatorActivation( Integer.MAX_VALUE, rm, rm.getRuleTerminalNode() );
                evaluator.evaluateNetwork(this);
            }
        } else {
            // no need to call retract, as no leftmemory used.
            getEntryPointNode().assertQuery( handle,
                                             pCtx,
View Full Code Here

Examples of org.drools.core.phreak.RuleNetworkEvaluatorActivation.evaluateNetwork()

                List<PathMemory> rmems =  lmem.getSegmentMemory().getPathMemories();
                for ( int i = 0, length = rmems.size(); i < length; i++ ) {
                    PathMemory rm = rmems.get( i );

                    RuleNetworkEvaluatorActivation evaluator = agenda.createRuleNetworkEvaluatorActivation( Integer.MAX_VALUE, rm, rm.getRuleTerminalNode() );
                    evaluator.evaluateNetwork(this);
                }
            } else {
                getEntryPointNode().retractQuery( factHandle,
                                                  pCtx,
                                                  this );
View Full Code Here

Examples of org.drools.core.phreak.RuleNetworkEvaluatorActivation.evaluateNetwork()

            List<PathMemory> rmems =  lmem.getSegmentMemory().getPathMemories();
            for ( int i = 0, length = rmems.size(); i < length; i++ ) {
                PathMemory rm = rmems.get( i );

                RuleNetworkEvaluatorActivation evaluator = agenda.createRuleNetworkEvaluatorActivation( Integer.MAX_VALUE, rm, rm.getRuleTerminalNode() );
                evaluator.evaluateNetwork(this, 0, -1);
            }
        } else {
            // no need to call retract, as no leftmemory used.
            getEntryPointNode().assertQuery( handle,
                                             pCtx,
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.