Package org.drools.core.reteoo.builder
Class ReteooRuleBuilder
java.lang.Object
org.drools.core.reteoo.builder.ReteooRuleBuilder
- All Implemented Interfaces:
RuleBuilder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEntryPoint(String id, InternalRuleBase kBase, Collection<InternalWorkingMemory> workingMemories) addRule(RuleImpl rule, InternalRuleBase kBase, Collection<InternalWorkingMemory> workingMemories) Creates the corresponting Rete network for the givenRuleand adds it to the given rule base.addWindowNode(WindowDeclaration window, InternalRuleBase kBase, Collection<InternalWorkingMemory> workingMemories) static TerminalNodebuildTerminalNodeForConsequence(BuildContext context, GroupElement subrule, int subRuleIndex, NamedConsequence namedConsequence, Timer timer, BuildUtils utils)
-
Field Details
-
utils
-
-
Constructor Details
-
ReteooRuleBuilder
public ReteooRuleBuilder()
-
-
Method Details
-
addRule
public List<TerminalNode> addRule(RuleImpl rule, InternalRuleBase kBase, Collection<InternalWorkingMemory> workingMemories) throws InvalidPatternException Creates the corresponting Rete network for the givenRuleand adds it to the given rule base.- Specified by:
addRulein interfaceRuleBuilder- 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
-
buildTerminalNodeForConsequence
public static TerminalNode buildTerminalNodeForConsequence(BuildContext context, GroupElement subrule, int subRuleIndex, NamedConsequence namedConsequence, Timer timer, BuildUtils utils) -
addEntryPoint
public void addEntryPoint(String id, InternalRuleBase kBase, Collection<InternalWorkingMemory> workingMemories) - Specified by:
addEntryPointin interfaceRuleBuilder
-
addWindowNode
public WindowNode addWindowNode(WindowDeclaration window, InternalRuleBase kBase, Collection<InternalWorkingMemory> workingMemories) - Specified by:
addWindowNodein interfaceRuleBuilder
-