|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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, id, packageClassLoader, pkgs, processes, statefulSessions, workingMemoryCounter |
Fields inherited from interface org.drools.RuleBase |
---|
LEAPS, RETEOO |
Constructor Summary | |
---|---|
ReteooRuleBase()
Default constructor - for Externalizable. |
|
ReteooRuleBase(RuleBaseConfiguration config)
|
|
ReteooRuleBase(String id)
Construct. |
|
ReteooRuleBase(String id,
FactHandleFactory factHandleFactory)
|
|
ReteooRuleBase(String id,
RuleBaseConfiguration config)
|
|
ReteooRuleBase(String id,
RuleBaseConfiguration config,
FactHandleFactory factHandleFactory)
Construct. |
Method Summary | |
---|---|
protected void |
addRule(Rule rule)
|
void |
assertObject(FactHandle handle,
Object object,
PropagationContext context,
ReteooWorkingMemory workingMemory)
Assert a fact object. |
Rete |
getRete()
Retrieve the Rete-OO network for this RuleBase . |
StatefulSession |
newStatefulSession(boolean keepReference)
Create a new WorkingMemory session for this
RuleBase . |
StatelessSession |
newStatelessSession()
|
void |
readExternal(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(ObjectOutput stream)
Handles the write serialization of the Package. |
Methods inherited from class org.drools.common.AbstractRuleBase |
---|
addPackage, addProcess, addStatefulSession, disposeStatefulSession, doReadExternal, doWriteExternal, getConfiguration, getFactHandleFactory, getGlobals, getId, getPackages, getProcess, getProcesses, getStatefulSessions, getWorkingMemories, newFactHandleFactory, newStatefulSession, newStatefulSession, newStatefulSession, removePackage, removeProcess, removeRule |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReteooRuleBase()
public ReteooRuleBase(String id)
rete
- The rete network.public ReteooRuleBase(String id, FactHandleFactory factHandleFactory)
factHandleFactory
- public ReteooRuleBase(String id, RuleBaseConfiguration config)
public ReteooRuleBase(RuleBaseConfiguration config)
config
- public ReteooRuleBase(String id, RuleBaseConfiguration config, FactHandleFactory factHandleFactory)
rete
- The rete network.Method Detail |
---|
public void writeExternal(ObjectOutput stream) throws IOException
IOException
public void readExternal(ObjectInput stream) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public Rete getRete()
RuleBase
.
public void assertObject(FactHandle handle, 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 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 StatefulSession newStatefulSession(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.
newStatefulSession
in interface RuleBase
newStatefulSession
in class AbstractRuleBase
WorkingMemory
.RuleBase
public StatelessSession newStatelessSession()
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 |