Package org.drools.core.reteoo.builder
Class ReteooRuleBuilder
- java.lang.Object
-
- org.drools.core.reteoo.builder.ReteooRuleBuilder
-
- All Implemented Interfaces:
RuleBuilder
public class ReteooRuleBuilder extends java.lang.Object implements RuleBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected BuildUtilsutils
-
Constructor Summary
Constructors Constructor Description ReteooRuleBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEntryPoint(java.lang.String id, RuleBase kBase, java.util.Collection<InternalWorkingMemory> workingMemories)java.util.List<TerminalNode>addRule(RuleImpl rule, RuleBase kBase, java.util.Collection<InternalWorkingMemory> workingMemories)Creates the corresponting Rete network for the givenRuleand adds it to the given rule base.WindowNodeaddWindowNode(WindowDeclaration window, RuleBase kBase, java.util.Collection<InternalWorkingMemory> workingMemories)static TerminalNodebuildTerminalNodeForConsequence(BuildContext context, GroupElement subrule, int subRuleIndex, NamedConsequence namedConsequence, Timer timer, BuildUtils utils)
-
-
-
Field Detail
-
utils
protected BuildUtils utils
-
-
Method Detail
-
addRule
public java.util.List<TerminalNode> addRule(RuleImpl rule, RuleBase kBase, java.util.Collection<InternalWorkingMemory> workingMemories) throws InvalidPatternException
Creates the corresponting Rete network for the givenRuleand adds it to the given rule base.- Specified by:
addRulein interfaceRuleBuilder- Parameters:
rule- The rule to add.kBase- The rulebase to add the rule to.- Returns:
- a List
of terminal nodes for the rule - Throws:
InvalidPatternException
-
buildTerminalNodeForConsequence
public static TerminalNode buildTerminalNodeForConsequence(BuildContext context, GroupElement subrule, int subRuleIndex, NamedConsequence namedConsequence, Timer timer, BuildUtils utils)
-
addEntryPoint
public void addEntryPoint(java.lang.String id, RuleBase kBase, java.util.Collection<InternalWorkingMemory> workingMemories)- Specified by:
addEntryPointin interfaceRuleBuilder
-
addWindowNode
public WindowNode addWindowNode(WindowDeclaration window, RuleBase kBase, java.util.Collection<InternalWorkingMemory> workingMemories)
- Specified by:
addWindowNodein interfaceRuleBuilder
-
-