|
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.AbleObjectWorkingMemory
This class holds instances of one or more Java classes for use by inference engines.
| Constructor Summary | |
|---|---|
AbleObjectWorkingMemory(AbleRuleSet theRuleSet)
|
|
| Method Summary | |
|---|---|
boolean |
asserta(java.lang.Object fact)
Place a fact into the working memory at front. |
void |
assertAll(java.util.List theList)
Assert all elements in the list into working memory. |
boolean |
assertFact(java.lang.Object fact)
Place a fact into the working memory. |
boolean |
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 |
modifyFact(java.lang.Object fact)
Modify or change an existing fact in the database |
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. |
void |
retractFact(java.lang.Object fact)
Remove a fact from the database |
java.lang.Object[] |
toArray()
Format the contents of working memory as an array of String[] Able array variables Note: this is an expensive operation |
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 boolean assertFact(java.lang.Object fact)
AbleWorkingMemory
assertFact in interface AbleWorkingMemorypublic boolean asserta(java.lang.Object fact)
AbleWorkingMemory
asserta in interface AbleWorkingMemorypublic boolean assertz(java.lang.Object fact)
AbleWorkingMemory
assertz in interface AbleWorkingMemorypublic void assertAll(java.util.List theList)
assertAll in interface AbleWorkingMemorytheList - The list from which elements are to be asserted.
public void retractFact(java.lang.Object fact)
AbleWorkingMemory
retractFact in interface AbleWorkingMemorypublic void retract(java.lang.Object fact)
AbleWorkingMemory
retract in interface AbleWorkingMemorypublic void retractAll(java.util.List theList)
retractAll in interface AbleWorkingMemorytheList - The list from which elements are to be retracted.
public void modifyFact(java.lang.Object fact)
AbleWorkingMemory
modifyFact in interface AbleWorkingMemorypublic void modify(java.lang.Object fact)
modify in interface AbleWorkingMemorypublic boolean exists(java.lang.Object fact)
exists in interface AbleWorkingMemoryfact - The object we are looking for in the working memory.
public java.lang.Object find(AbleSelector query)
throws AbleDataException
find in interface AbleWorkingMemoryAbleDataException
public java.util.AbstractCollection findAll(AbleSelector query)
throws AbleDataException
findAll in interface AbleWorkingMemoryAbleDataExceptionpublic java.util.AbstractCollection findAllInstances(java.lang.String className)
findAllInstances in interface AbleWorkingMemorypublic java.util.Enumeration getClasses()
getClasses in interface AbleWorkingMemorypublic void clear()
clear in interface AbleWorkingMemorypublic boolean isEmpty()
isEmpty in interface AbleWorkingMemorypublic java.lang.String toString()
public java.lang.Object[] toArray()
throws AbleDataException
toArray in interface AbleWorkingMemoryAbleDataException
|
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 | |||||||||||