|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.common.AbstractRuleBase
org.drools.reteoo.ReteooRuleBase
public class ReteooRuleBase
Implementation of RuleBase
.
Field Summary |
---|
Fields inherited from class org.drools.common.AbstractRuleBase |
---|
config, factHandleFactory, globals, packageClassLoader, pkgs, PRESENT, workingMemories |
Fields inherited from interface org.drools.RuleBase |
---|
LEAPS, RETEOO |
Constructor Summary | |
---|---|
ReteooRuleBase()
Construct. |
|
ReteooRuleBase(FactHandleFactory factHandleFactory)
|
|
ReteooRuleBase(RuleBaseConfiguration config)
|
|
ReteooRuleBase(RuleBaseConfiguration config,
FactHandleFactory factHandleFactory)
Construct. |
Method Summary | |
---|---|
protected void |
addRule(Rule rule)
|
void |
assertObject(FactHandle handle,
java.lang.Object object,
PropagationContext context,
ReteooWorkingMemory workingMemory)
Assert a fact object. |
void |
modifyObject(FactHandle handle,
PropagationContext context,
ReteooWorkingMemory workingMemory)
|
WorkingMemory |
newWorkingMemory(boolean keepReference)
Create a new WorkingMemory session for this
RuleBase . |
void |
readExternal(java.io.ObjectInput stream)
Handles the read serialization of the Package. |
protected void |
removeRule(Rule rule)
|
void |
retractObject(FactHandle handle,
PropagationContext context,
ReteooWorkingMemory workingMemory)
Retract a fact object. |
void |
writeExternal(java.io.ObjectOutput stream)
Handles the write serialization of the Package. |
Methods inherited from class org.drools.common.AbstractRuleBase |
---|
addPackage, addWorkingMemory, disposeWorkingMemory, doReadExternal, doWriteExternal, getConfiguration, getFactHandleFactory, getGlobals, getPackages, getWorkingMemories, newFactHandleFactory, newWorkingMemory, newWorkingMemory, newWorkingMemory, removePackage, removeRule |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReteooRuleBase()
rete
- The rete network.public ReteooRuleBase(FactHandleFactory factHandleFactory)
factHandleFactory
- public ReteooRuleBase(RuleBaseConfiguration config)
config
- public ReteooRuleBase(RuleBaseConfiguration config, FactHandleFactory factHandleFactory)
rete
- The rete network.Method Detail |
---|
public void writeExternal(java.io.ObjectOutput stream) throws java.io.IOException
java.io.IOException
public void readExternal(java.io.ObjectInput stream) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public void assertObject(FactHandle handle, java.lang.Object object, PropagationContext context, ReteooWorkingMemory workingMemory) throws FactException
handle
- The handle.object
- The fact.workingMemory
- The working-memory.
FactException
- If an error occurs while performing the assertion.public void modifyObject(FactHandle handle, PropagationContext context, ReteooWorkingMemory workingMemory) throws FactException
FactException
public void retractObject(FactHandle handle, PropagationContext context, ReteooWorkingMemory workingMemory) throws FactException
handle
- The handle.workingMemory
- The working-memory.
FactException
- If an error occurs while performing the retraction.public WorkingMemory newWorkingMemory(boolean keepReference)
RuleBase
WorkingMemory
session for this
RuleBase
. Optionally the RuleBase retains a
weak reference to returned WorkingMemory.
The created WorkingMemory
uses the default conflict
resolution strategy.
newWorkingMemory
in interface RuleBase
newWorkingMemory
in class AbstractRuleBase
WorkingMemory
.RuleBase
protected void addRule(Rule rule) throws InvalidPatternException
addRule
in class AbstractRuleBase
InvalidPatternException
protected void removeRule(Rule rule)
removeRule
in class AbstractRuleBase
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |