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,
InternalRuleBase rulebase,
ReteooBuilder.IdGenerator idGenerator) |
List<TerminalNode> |
addRule(Rule rule,
InternalRuleBase rulebase,
ReteooBuilder.IdGenerator idGenerator)
Creates the corresponting Rete network for the given
Rule and adds it to
the given rule base. |
WindowNode |
addWindowNode(WindowDeclaration window,
InternalRuleBase ruleBase,
ReteooBuilder.IdGenerator idGenerator) |
protected BuildUtils utils
public List<TerminalNode> addRule(Rule rule, InternalRuleBase rulebase, ReteooBuilder.IdGenerator idGenerator) throws InvalidPatternException
Rule
and adds it to
the given rule base.addRule
in interface RuleBuilder
rule
- The rule to add.rulebase
- The rulebase to add the rule to.RuleIntegrationException
- if an error prevents complete construction of the network for
the Rule
.InvalidPatternException
public void addEntryPoint(String id, InternalRuleBase rulebase, ReteooBuilder.IdGenerator idGenerator)
addEntryPoint
in interface RuleBuilder
public WindowNode addWindowNode(WindowDeclaration window, InternalRuleBase ruleBase, ReteooBuilder.IdGenerator idGenerator)
addWindowNode
in interface RuleBuilder
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.