|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | 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 . |
java.lang.Object |
getApplicationData()
Retrieve the application data that is associated with this memory. |
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. |
void |
setApplicationData(java.lang.Object appData)
Set the application data associated with this 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 java.lang.Object getApplicationData()
null
if
no data has been set for this memory.public void setApplicationData(java.lang.Object appData)
appData
- The application data for this memory.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: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |