org.drools.reteoo
Class ReteooBuilder
java.lang.Object
org.drools.reteoo.ReteooBuilder
- All Implemented Interfaces:
- Externalizable, Serializable
public class ReteooBuilder
- extends Object
- implements Externalizable
Builds the Rete-OO network for a Package.
- See Also:
Package,
Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReteooBuilder
public ReteooBuilder()
addEntryPoint
public void addEntryPoint(String id)
addNamedWindow
public void addNamedWindow(WindowDeclaration window)
getWindowNode
public WindowNode getWindowNode(String name)
getIdGenerator
public ReteooBuilder.IdGenerator getIdGenerator()
setOrdered
protected void setOrdered(boolean ordered)
order
public void order()
getTerminalNodes
public BaseNode[] getTerminalNodes(Rule rule)
getTerminalNodes
public Map<Rule,BaseNode[]> getTerminalNodes()
removeRule
public void removeRule(Rule rule)
resetMasks
public void resetMasks(RuleRemovalContext context)
- Rule removal now keeps a list of all the visited nodes.
We iterate each of those to find the nodes still in use, who's inferred mask is now stale.
For each node we find the tip, which is either BetaNode or RuleTerminalNode and re initialise
the inferred mask, which will trickle back up to the OTN
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)
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.