org.drools.reteoo.builder
Class ReteooRuleBuilder
java.lang.Object
org.drools.reteoo.builder.ReteooRuleBuilder
public class ReteooRuleBuilder
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
- 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)
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.