|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A knowledge session for a RuleBase
.
Method Summary | |
FactHandle |
assertObject(java.lang.Object object)
Aasert a fact. |
boolean |
containsObject(FactHandle handle)
Determine if an object is associated with a FactHandle . |
void |
fireAllRules()
Fire all items on the agenda until empty. |
java.lang.Object |
getApplicationData()
Retrieve the application data that is associated with this memory. |
java.lang.Object |
getObject(FactHandle handle)
Retrieve the object associated with a FactHandle . |
java.util.List |
getObjects()
Retieve all known objects. |
RuleBase |
getRuleBase()
Retrieve the RuleBase
of this working memory. |
void |
modifyObject(FactHandle handle,
java.lang.Object object)
Modify a fact. |
void |
retractObject(FactHandle handle)
Retract a fact. |
void |
setApplicationData(java.lang.Object appData)
Set the application data associated with this memory. |
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 RuleBase getRuleBase()
RuleBase
of this working memory.
RuleBase
.public void fireAllRules() throws FactException
FactException
- If an error occurs.public java.lang.Object getObject(FactHandle handle) throws NoSuchFactObjectException
FactHandle
.
handle
- The fact handle.
NoSuchFactObjectException
- If no object is known to be
associated with the specified handle.containsObject(org.drools.FactHandle)
public java.util.List getObjects()
public boolean containsObject(FactHandle handle)
FactHandle
.
handle
- The fact handle.
true
if an object is known to be associated with
the specified handle, otherwise false
.public FactHandle assertObject(java.lang.Object object) throws FactException
object
- The fact object.
FactException
- If an error occurs.public void retractObject(FactHandle handle) throws FactException
handle
- The fact-handle associated with the fact to retract.
FactException
- If an error occurs.public void modifyObject(FactHandle handle, java.lang.Object object) throws FactException
handle
- The fact-handle associated with the fact to modify.object
- The new value of the fact.
FactException
- If an error occurs.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |