Package org.drools.core.phreak

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


            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

    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

    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

    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

            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

            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

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.