|
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.AbleObjectWorkingMemory
This class holds instances of one or more Java classes for use by inference engines.
Constructor Summary | |
---|---|
AbleObjectWorkingMemory(AbleRuleSet theRuleSet)
|
Method Summary | |
---|---|
void |
assert(java.lang.Object fact)
Place a fact into the database |
void |
asserta(java.lang.Object fact)
Place a fact into the database at front |
void |
assertAll(java.util.List theList)
Assert all elements in the list into working memory. |
void |
assertz(java.lang.Object fact)
Place a fact into the database at end |
void |
clear()
Remove all objects stored in this working memory |
boolean |
exists(java.lang.Object fact)
Test if the specified object exists in the working memory |
java.lang.Object |
find(AbleSelector query)
Given a query which is a pattern match rule Return the first object that matches the constraints |
java.util.AbstractCollection |
findAll(AbleSelector query)
Given a query which is a pattern match rule Return the all objects that match the constraints |
java.util.AbstractCollection |
findAllInstances(java.lang.String className)
Find all objects that match the class |
java.util.Enumeration |
getClasses()
Retrieve all classes (types) stored in this working memory |
boolean |
isEmpty()
Returns true if the working memory is empty (contains no objects) |
void |
modify(java.lang.Object fact)
Modify or change an existing fact |
void |
retract(java.lang.Object fact)
Remove a fact from the database |
void |
retractAll(java.util.List theList)
Retract all elements in the list from working memory. |
java.lang.String |
toString()
Format the contents of working memory into a String For display in an Inspector |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AbleObjectWorkingMemory(AbleRuleSet theRuleSet)
Method Detail |
public void assert(java.lang.Object fact)
AbleWorkingMemory
assert
in interface AbleWorkingMemory
public void asserta(java.lang.Object fact)
AbleWorkingMemory
asserta
in interface AbleWorkingMemory
public void assertz(java.lang.Object fact)
AbleWorkingMemory
assertz
in interface AbleWorkingMemory
public void assertAll(java.util.List theList)
assertAll
in interface AbleWorkingMemory
theList
- The list from which elements are to be asserted.
public void retract(java.lang.Object fact)
AbleWorkingMemory
retract
in interface AbleWorkingMemory
public void retractAll(java.util.List theList)
retractAll
in interface AbleWorkingMemory
theList
- The list from which elements are to be retracted.
public void modify(java.lang.Object fact)
modify
in interface AbleWorkingMemory
public boolean exists(java.lang.Object fact)
exists
in interface AbleWorkingMemory
Object
- The object we are looking for in the working memory.public java.lang.Object find(AbleSelector query) throws AbleDataException
find
in interface AbleWorkingMemory
public java.util.AbstractCollection findAll(AbleSelector query) throws AbleDataException
findAll
in interface AbleWorkingMemory
public java.util.AbstractCollection findAllInstances(java.lang.String className)
findAllInstances
in interface AbleWorkingMemory
public java.util.Enumeration getClasses()
getClasses
in interface AbleWorkingMemory
public void clear()
clear
in interface AbleWorkingMemory
public boolean isEmpty()
isEmpty
in interface AbleWorkingMemory
public java.lang.String toString()
toString
in class java.lang.Object
|
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 |