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, InternalKnowledgeBase kBase)
List<TerminalNode>
addRule(RuleImpl rule, InternalKnowledgeBase kBase)
Creates the corresponting Rete network for the givenRule
and adds it to the given rule base.WindowNode
addWindowNode(WindowDeclaration window, InternalKnowledgeBase kBase)
-
-
-
Field Detail
-
utils
protected BuildUtils utils
-
-
Method Detail
-
addRule
public List<TerminalNode> addRule(RuleImpl rule, InternalKnowledgeBase kBase) 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, InternalKnowledgeBase kBase)
- Specified by:
addEntryPoint
in interfaceRuleBuilder
-
addWindowNode
public WindowNode addWindowNode(WindowDeclaration window, InternalKnowledgeBase kBase)
- Specified by:
addWindowNode
in interfaceRuleBuilder
-
-