Class ReteooRuleBuilder

  • All Implemented Interfaces:
    RuleBuilder

    public class ReteooRuleBuilder
    extends java.lang.Object
    implements RuleBuilder
    • Constructor Detail

      • ReteooRuleBuilder

        public ReteooRuleBuilder()
    • Method Detail

      • addRule

        public java.util.List<TerminalNode> addRule​(org.drools.base.definitions.rule.impl.RuleImpl rule,
                                                    InternalRuleBase kBase,
                                                    java.util.Collection<InternalWorkingMemory> workingMemories)
                                             throws org.drools.base.rule.InvalidPatternException
        Creates the corresponting Rete network for the given Rule and adds it to the given rule base.
        Specified by:
        addRule in interface RuleBuilder
        Parameters:
        rule - The rule to add.
        kBase - The rulebase to add the rule to.
        Returns:
        a List of terminal nodes for the rule
        Throws:
        org.drools.base.rule.InvalidPatternException
      • buildTerminalNodeForConsequence

        public static TerminalNode buildTerminalNodeForConsequence​(BuildContext context,
                                                                   org.drools.base.rule.GroupElement subrule,
                                                                   int subRuleIndex,
                                                                   org.drools.base.rule.NamedConsequence namedConsequence,
                                                                   org.drools.base.time.impl.Timer timer,
                                                                   BuildUtils utils)