|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.able.rules.AbleWorkingMemoryLib
This class provides a set of user-defined functions for manipulating an AbleWorkingMemory object in an AbleRuleSet.
AbleWorkingMemory
,
AbleRuleSet
, Serialized FormConstructor Summary | |
---|---|
AbleWorkingMemoryLib()
|
Method Summary | |
---|---|
void |
assert(AbleWorkingMemory wm,
java.lang.Object fact)
Place a fact into the database |
void |
assertAll(AbleWorkingMemory wm,
java.util.List theList)
Assert all elements in the list into working memory. |
void |
clear(AbleWorkingMemory wm)
Clear all facts from the working memory |
static java.lang.String |
Copyright()
Determine the copyright of this class. |
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 assert(AbleWorkingMemory wm, java.lang.Object fact)
wm
- The Working Memory.fact
- The Object to be assertedpublic 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 removedpublic 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 memorypublic java.util.AbstractCollection findAll(AbleWorkingMemory wm, AbleSelector query) throws 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 foundpublic java.lang.String showWorkingMemory(AbleWorkingMemory wm)
public static java.lang.String Copyright()
|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |