org.drools.reteoo.builder
Class ReteooRuleBuilder
java.lang.Object
org.drools.reteoo.builder.ReteooRuleBuilder
- All Implemented Interfaces:
- RuleBuilder
public class ReteooRuleBuilder
- extends Object
- implements RuleBuilder
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
utils
protected BuildUtils utils
ReteooRuleBuilder
public ReteooRuleBuilder()
addRule
public List<TerminalNode> addRule(Rule rule,
InternalRuleBase rulebase,
ReteooBuilder.IdGenerator idGenerator)
throws InvalidPatternException
- Creates the corresponting Rete network for the given
Rule and adds it to
the given rule base.
- Specified by:
addRule in interface RuleBuilder
- Parameters:
rule - The rule to add.rulebase - The rulebase to add the rule to.
- Returns:
- a List of terminal nodes for the rule
- Throws:
RuleIntegrationException - if an error prevents complete construction of the network for
the Rule.
InvalidPatternException
addEntryPoint
public void addEntryPoint(String id,
InternalRuleBase rulebase,
ReteooBuilder.IdGenerator idGenerator)
- Specified by:
addEntryPoint in interface RuleBuilder
addWindowNode
public WindowNode addWindowNode(WindowDeclaration window,
InternalRuleBase ruleBase,
ReteooBuilder.IdGenerator idGenerator)
- Specified by:
addWindowNode in interface RuleBuilder
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.