org.drools.core.reteoo
Class ReteooBuilder
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReteooBuilder
public ReteooBuilder()
ReteooBuilder
public ReteooBuilder(InternalKnowledgeBase kBase)
- Construct a
Builder against an existing Rete
network.
addRule
public void addRule(RuleImpl rule)
throws InvalidPatternException
- Add a
Rule to the network.
- Parameters:
rule - The rule to add.
- Throws:
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(RuleImpl rule)
getTerminalNodes
public BaseNode[] getTerminalNodes(String ruleName)
getTerminalNodes
public Map<String,BaseNode[]> getTerminalNodes()
removeRule
public void removeRule(RuleImpl rule)
removeTerminalNode
public void removeTerminalNode(RuleRemovalContext context,
TerminalNode tn,
InternalWorkingMemory[] workingMemories)
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(InternalKnowledgeBase kBase)
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.