|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.drools.WorkingMemory
A knowledge session for a RuleBase
.
Constructor Summary | |
protected |
WorkingMemory(RuleBase ruleBase)
Construct a new working memory for a ruleBase. |
Method Summary | |
void |
assertObject(java.lang.Object object)
Assert a new fact object into this working memory. |
Agenda |
getAgenda()
Retrieve the rule-firing Agenda for
this WorkingMemory . |
JoinMemory |
getJoinMemory(JoinNode node)
Retrieve the JoinMemory for a particular JoinNode . |
RuleBase |
getRuleBase()
Retrieve the RuleBase
of this working memory. |
void |
modifyObject(java.lang.Object object)
Modify a fact object in this working memory. |
void |
retractObject(java.lang.Object object)
Retract a fact object from this working memory. |
java.lang.String |
toString()
Produce a debug string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected WorkingMemory(RuleBase ruleBase)
ruleBase
- The rule base with which this memory is associated.Method Detail |
public Agenda getAgenda()
Agenda
for
this WorkingMemory
.
Agenda
.public RuleBase getRuleBase()
RuleBase
of this working memory.
RuleBase
.public void assertObject(java.lang.Object object) throws AssertionException
object
- The object to assert.
AssertionException
- if an error occurs during assertion.public void retractObject(java.lang.Object object) throws RetractionException
object
- The object to retract.
RetractionException
- if an error occurs during retraction.public void modifyObject(java.lang.Object object) throws FactException
object
- The object to modify.
FactException
- if an error occurs during modification.public JoinMemory getJoinMemory(JoinNode node)
JoinMemory
for a particular JoinNode
.
node
- The JoinNode
key.
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |