public class ReteooRuleBuilder extends Object implements RuleBuilder
Modifier and Type | Field and Description |
---|---|
protected BuildUtils |
utils |
Constructor and Description |
---|
ReteooRuleBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
addEntryPoint(String id,
InternalKnowledgeBase kBase) |
List<TerminalNode> |
addRule(RuleImpl rule,
InternalKnowledgeBase kBase)
Creates the corresponting Rete network for the given
Rule and adds it to
the given rule base. |
WindowNode |
addWindowNode(WindowDeclaration window,
InternalKnowledgeBase kBase) |
protected BuildUtils utils
public List<TerminalNode> addRule(RuleImpl rule, InternalKnowledgeBase kBase) throws InvalidPatternException
Rule
and adds it to
the given rule base.addRule
in interface RuleBuilder
rule
- The rule to add.kBase
- The rulebase to add the rule to.InvalidPatternException
public void addEntryPoint(String id, InternalKnowledgeBase kBase)
addEntryPoint
in interface RuleBuilder
public WindowNode addWindowNode(WindowDeclaration window, InternalKnowledgeBase kBase)
addWindowNode
in interface RuleBuilder
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.