public class ReteooBuilder extends Object implements Externalizable
Package
.Modifier and Type | Class and Description |
---|---|
static class |
ReteooBuilder.IdGenerator |
Constructor and Description |
---|
ReteooBuilder() |
ReteooBuilder(InternalRuleBase ruleBase)
Construct a
Builder against an existing Rete
network. |
Modifier and Type | Method and Description |
---|---|
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) |
public ReteooBuilder()
public ReteooBuilder(InternalRuleBase ruleBase)
Builder
against an existing Rete
network.public void addRule(Rule rule) throws InvalidPatternException
Rule
to the network.rule
- The rule to add.RuleIntegrationException
- if an error prevents complete construction of the network for
the Rule
.InvalidPatternException
public void addEntryPoint(String id)
public void addNamedWindow(WindowDeclaration window)
public WindowNode getWindowNode(String name)
public ReteooBuilder.IdGenerator getIdGenerator()
public void removeRule(Rule rule)
public void removeTerminalNode(RuleRemovalContext context, TerminalNode tn, InternalWorkingMemory[] workingMemories)
public void removeNode(BaseNode node, LinkedList<BaseNode> alphaStack, LinkedList<BaseNode> betaStack, LinkedList<BaseNode> stillInUse, boolean processRian, InternalWorkingMemory[] workingMemories, RuleRemovalContext context)
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(ReteooRuleBase reteooRuleBase)
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.