org.drools.reteoo.builder
Class ReteooRuleBuilder

java.lang.Object
  extended by org.drools.reteoo.builder.ReteooRuleBuilder

public class ReteooRuleBuilder
extends Object


Constructor Summary
ReteooRuleBuilder()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReteooRuleBuilder

public ReteooRuleBuilder()
Method Detail

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.