|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.ibm.able.rules.AbleWorkingMemoryLib
This class provides a set of user-defined functions for manipulating an AbleWorkingMemory object in an AbleRuleSet.
AbleWorkingMemory,
AbleRuleSet,
Serialized Form| Constructor Summary | |
|---|---|
AbleWorkingMemoryLib()
|
|
| Method Summary | |
|---|---|
void |
assertAll(AbleWorkingMemory wm,
java.util.List theList)
Assert all elements in the list into working memory. |
void |
assertFact(AbleWorkingMemory wm,
java.lang.Object fact)
Place a fact into the database |
void |
clear(AbleWorkingMemory wm)
Clear all facts from the working memory |
boolean |
exists(AbleWorkingMemory wm,
java.lang.Object fact)
Test if the specified object exists in the working memory |
java.lang.Object |
find(AbleWorkingMemory wm,
AbleSelector query)
Find the first fact to match the query |
java.util.AbstractCollection |
findAll(AbleWorkingMemory wm,
AbleSelector query)
Find all facts that match the query |
java.util.AbstractCollection |
findAllInstances(AbleWorkingMemory wm,
java.lang.String className)
Find all objects that match the class |
void |
modify(AbleWorkingMemory wm,
java.lang.Object fact)
Modify or change an existing fact in the working memory |
void |
retract(AbleWorkingMemory wm,
java.lang.Object fact)
Remove a fact from the database |
void |
retractAll(AbleWorkingMemory wm,
java.util.List theList)
Retract all elements in the list from working memory. |
java.lang.String |
showWorkingMemory(AbleWorkingMemory wm)
Returns a formatted string of the contents of the working memory to use for debugging. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbleWorkingMemoryLib()
| Method Detail |
public void assertFact(AbleWorkingMemory wm,
java.lang.Object fact)
wm - The Working Memory.fact - The Object to be asserted
public void assertAll(AbleWorkingMemory wm,
java.util.List theList)
wm - The Working Memory.theList - The list from which elements are to be asserted.
public void retract(AbleWorkingMemory wm,
java.lang.Object fact)
wm - The Working Memory.fact - The Object to be removed
public void retractAll(AbleWorkingMemory wm,
java.util.List theList)
wm - The Working Memory.theList - The list from which elements are to be retracted.
public void modify(AbleWorkingMemory wm,
java.lang.Object fact)
wm - The Working Memory.fact - The Object to be modifiedpublic void clear(AbleWorkingMemory wm)
wm - The Working Memory.
public boolean exists(AbleWorkingMemory wm,
java.lang.Object fact)
wm - The Working Memory.fact - The object we are looking for in the working memory.
public java.lang.Object find(AbleWorkingMemory wm,
AbleSelector query)
throws AbleDataException
wm - The Working Memory.query - The AbleSelector used to query the working memory
AbleDataException
public java.util.AbstractCollection findAll(AbleWorkingMemory wm,
AbleSelector query)
throws AbleDataException
AbleDataException
public java.util.AbstractCollection findAllInstances(AbleWorkingMemory wm,
java.lang.String className)
throws AbleDataException
wm - The Working Memory.className - The name of the Java class instances to be found
AbleDataExceptionpublic java.lang.String showWorkingMemory(AbleWorkingMemory wm)
|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||