public class ReteooBuilder extends Object implements Externalizable
Package
.Modifier and Type | Class and Description |
---|---|
static class |
ReteooBuilder.IdGenerator |
Constructor and Description |
---|
ReteooBuilder() |
ReteooBuilder(InternalKnowledgeBase kBase)
Construct a
Builder against an existing Rete
network. |
Modifier and Type | Method and Description |
---|---|
void |
addEntryPoint(String id) |
void |
addNamedWindow(WindowDeclaration window) |
void |
addRule(RuleImpl rule)
Add a
Rule to the network. |
ReteooBuilder.IdGenerator |
getIdGenerator() |
Map<String,BaseNode[]> |
getTerminalNodes() |
BaseNode[] |
getTerminalNodes(RuleImpl rule) |
BaseNode[] |
getTerminalNodes(String ruleName) |
BaseNode[] |
getTerminalNodesForQuery(String ruleName) |
WindowNode |
getWindowNode(String name) |
void |
readExternal(ObjectInput in) |
void |
removeRules(Collection<RuleImpl> rulesToBeRemoved) |
void |
removeTerminalNode(RuleRemovalContext context,
TerminalNode tn,
InternalWorkingMemory[] workingMemories) |
void |
setRuleBase(InternalKnowledgeBase kBase) |
void |
writeExternal(ObjectOutput out) |
public ReteooBuilder()
public ReteooBuilder(InternalKnowledgeBase kBase)
Builder
against an existing Rete
network.public void addRule(RuleImpl rule) throws InvalidPatternException
Rule
to the network.rule
- The rule to add.InvalidPatternException
public void addEntryPoint(String id)
public void addNamedWindow(WindowDeclaration window)
public WindowNode getWindowNode(String name)
public ReteooBuilder.IdGenerator getIdGenerator()
public void removeRules(Collection<RuleImpl> rulesToBeRemoved)
public void removeTerminalNode(RuleRemovalContext context, TerminalNode tn, InternalWorkingMemory[] workingMemories)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void setRuleBase(InternalKnowledgeBase kBase)
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.