|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.reteoo.RuleBaseImpl
Implementation of RuleBase
.
Constructor Summary | |
(package private) |
RuleBaseImpl(Rete rete)
Construct. |
(package private) |
RuleBaseImpl(Rete rete,
ConflictResolver conflictResolver,
FactHandleFactory factHandleFactory,
List ruleSets,
Map applicationData)
Construct. |
Method Summary | |
(package private) void |
assertObject(FactHandle handle,
Object object,
WorkingMemoryImpl workingMemory)
Assert a fact object. |
Map |
getApplicationData()
|
ConflictResolver |
getConflictResolver()
Retrieve the ConflictResolver . |
FactHandleFactory |
getFactHandleFactory()
Retrieve the FactHandleFactor . |
(package private) Rete |
getRete()
Retrieve the Rete-OO network for this RuleBase . |
List |
getRuleSets()
|
(package private) void |
modifyObject(FactHandle handle,
Object object,
WorkingMemoryImpl workingMemory)
Modify a fact object. |
WorkingMemory |
newWorkingMemory()
Create a new WorkingMemory session for this
RuleBase . |
(package private) void |
retractObject(FactHandle handle,
WorkingMemoryImpl workingMemory)
Retract a fact object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
RuleBaseImpl(Rete rete)
rete
- The rete network.RuleBaseImpl(Rete rete, ConflictResolver conflictResolver, FactHandleFactory factHandleFactory, List ruleSets, Map applicationData)
rete
- The rete network.conflictResolver
- The conflict resolver.factHandleFactory
- The fact handle factory.Method Detail |
public WorkingMemory newWorkingMemory()
RuleBase
WorkingMemory
session for this
RuleBase
.
The created WorkingMemory
uses the default conflict
resolution strategy.
newWorkingMemory
in interface RuleBase
WorkingMemory
.RuleBase
public FactHandleFactory getFactHandleFactory()
RuleBase
FactHandleFactor
.
getFactHandleFactory
in interface RuleBase
RuleBase
public ConflictResolver getConflictResolver()
RuleBase
ConflictResolver
.
getConflictResolver
in interface RuleBase
RuleBase
Rete getRete()
RuleBase
.
void assertObject(FactHandle handle, Object object, WorkingMemoryImpl workingMemory) throws FactException
handle
- The handle.object
- The fact.workingMemory
- The working-memory.
FactException
- If an error occurs while performing the assertion.void retractObject(FactHandle handle, WorkingMemoryImpl workingMemory) throws FactException
handle
- The handle.workingMemory
- The working-memory.
FactException
- If an error occurs while performing the retraction.void modifyObject(FactHandle handle, Object object, WorkingMemoryImpl workingMemory) throws FactException
handle
- The handle.object
- The fact.workingMemory
- The working-memory.
FactException
- If an error occurs while performing the modification.public List getRuleSets()
getRuleSets
in interface RuleBase
public Map getApplicationData()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |