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 Object implements RuleBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected BuildUtils
utils
-
Constructor Summary
Constructors Constructor Description ReteooRuleBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEntryPoint(String id, RuleBase kBase, Collection<InternalWorkingMemory> workingMemories)
List<TerminalNode>
addRule(RuleImpl rule, RuleBase kBase, Collection<InternalWorkingMemory> workingMemories)
Creates the corresponting Rete network for the givenRule
and adds it to the given rule base.WindowNode
addWindowNode(WindowDeclaration window, RuleBase kBase, Collection<InternalWorkingMemory> workingMemories)
-
-
-
Field Detail
-
utils
protected BuildUtils utils
-
-
Method Detail
-
addRule
public List<TerminalNode> addRule(RuleImpl rule, RuleBase kBase, Collection<InternalWorkingMemory> workingMemories) throws InvalidPatternException
Creates the corresponting Rete network for the givenRule
and adds it to the given rule base.- Specified by:
addRule
in 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
-
addEntryPoint
public void addEntryPoint(String id, RuleBase kBase, Collection<InternalWorkingMemory> workingMemories)
- Specified by:
addEntryPoint
in interfaceRuleBuilder
-
addWindowNode
public WindowNode addWindowNode(WindowDeclaration window, RuleBase kBase, Collection<InternalWorkingMemory> workingMemories)
- Specified by:
addWindowNode
in interfaceRuleBuilder
-
-