Drools :: Core 6.1.0.Beta1

org.drools.core.reteoo
Class ReteooBuilder

java.lang.Object
  extended by org.drools.core.reteoo.ReteooBuilder
All Implemented Interfaces:
Externalizable, Serializable

public class ReteooBuilder
extends Object
implements Externalizable

Builds the Rete-OO network for a Package.

See Also:
Serialized Form

Nested Class Summary
static class ReteooBuilder.IdGenerator
           
 
Constructor Summary
ReteooBuilder()
           
ReteooBuilder(InternalRuleBase ruleBase)
          Construct a Builder against an existing Rete network.
 
Method Summary
 void addEntryPoint(String id)
           
 void addNamedWindow(WindowDeclaration window)
           
 void addRule(Rule rule)
          Add a Rule to the network.
 ReteooBuilder.IdGenerator getIdGenerator()
           
 Map<String,BaseNode[]> getTerminalNodes()
           
 BaseNode[] getTerminalNodes(Rule rule)
           
 BaseNode[] getTerminalNodes(String ruleName)
           
 WindowNode getWindowNode(String name)
           
 void readExternal(ObjectInput in)
           
 void removeNode(BaseNode node, LinkedList<BaseNode> alphaStack, LinkedList<BaseNode> betaStack, LinkedList<BaseNode> stillInUse, boolean processRian, InternalWorkingMemory[] workingMemories, RuleRemovalContext context)
           
 void removeRule(Rule rule)
           
 void removeTerminalNode(RuleRemovalContext context, TerminalNode tn, InternalWorkingMemory[] workingMemories)
           
 void resetMasks(List<BaseNode> nodes)
           
 void setRuleBase(ReteooRuleBase reteooRuleBase)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReteooBuilder

public ReteooBuilder()

ReteooBuilder

public ReteooBuilder(InternalRuleBase ruleBase)
Construct a Builder against an existing Rete network.

Method Detail

addRule

public void addRule(Rule rule)
             throws InvalidPatternException
Add a Rule to the network.

Parameters:
rule - The rule to add.
Throws:
RuleIntegrationException - if an error prevents complete construction of the network for the Rule.
InvalidPatternException

addEntryPoint

public void addEntryPoint(String id)

addNamedWindow

public void addNamedWindow(WindowDeclaration window)

getWindowNode

public WindowNode getWindowNode(String name)

getIdGenerator

public ReteooBuilder.IdGenerator getIdGenerator()

getTerminalNodes

public BaseNode[] getTerminalNodes(Rule rule)

getTerminalNodes

public BaseNode[] getTerminalNodes(String ruleName)

getTerminalNodes

public Map<String,BaseNode[]> getTerminalNodes()

removeRule

public void removeRule(Rule rule)

removeTerminalNode

public void removeTerminalNode(RuleRemovalContext context,
                               TerminalNode tn,
                               InternalWorkingMemory[] workingMemories)

removeNode

public void removeNode(BaseNode node,
                       LinkedList<BaseNode> alphaStack,
                       LinkedList<BaseNode> betaStack,
                       LinkedList<BaseNode> stillInUse,
                       boolean processRian,
                       InternalWorkingMemory[] workingMemories,
                       RuleRemovalContext context)

resetMasks

public void resetMasks(List<BaseNode> nodes)

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

setRuleBase

public void setRuleBase(ReteooRuleBase reteooRuleBase)

Drools :: Core 6.1.0.Beta1

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