Drools :: Core 6.2.0.CR4

org.drools.core.reteoo.builder
Class ReteooRuleBuilder

java.lang.Object
  extended by org.drools.core.reteoo.builder.ReteooRuleBuilder
All Implemented Interfaces:
RuleBuilder

public class ReteooRuleBuilder
extends Object
implements RuleBuilder


Field Summary
protected  BuildUtils utils
           
 
Constructor Summary
ReteooRuleBuilder()
           
 
Method Summary
 void addEntryPoint(String id, InternalKnowledgeBase kBase, ReteooBuilder.IdGenerator idGenerator)
           
 List<TerminalNode> addRule(RuleImpl rule, InternalKnowledgeBase kBase, ReteooBuilder.IdGenerator idGenerator)
          Creates the corresponting Rete network for the given Rule and adds it to the given rule base.
 WindowNode addWindowNode(WindowDeclaration window, InternalKnowledgeBase kBase, ReteooBuilder.IdGenerator idGenerator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

utils

protected BuildUtils utils
Constructor Detail

ReteooRuleBuilder

public ReteooRuleBuilder()
Method Detail

addRule

public List<TerminalNode> addRule(RuleImpl rule,
                                  InternalKnowledgeBase kBase,
                                  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.
kBase - The rulebase to add the rule to.
Returns:
a List of terminal nodes for the rule
Throws:
InvalidPatternException

addEntryPoint

public void addEntryPoint(String id,
                          InternalKnowledgeBase kBase,
                          ReteooBuilder.IdGenerator idGenerator)
Specified by:
addEntryPoint in interface RuleBuilder

addWindowNode

public WindowNode addWindowNode(WindowDeclaration window,
                                InternalKnowledgeBase kBase,
                                ReteooBuilder.IdGenerator idGenerator)
Specified by:
addWindowNode in interface RuleBuilder

Drools :: Core 6.2.0.CR4

Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.