|
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 | +--java.util.AbstractCollection | +--java.util.AbstractList | +--java.util.Vector | +--com.ibm.able.data.AbleReferences | +--com.ibm.able.rules.AbleClauseReferences
This class is used to keep track of a set of references from other objects to the object that contains this "references" object.
In the base Able implementation, this class is used in all AbleVariable data objects and allows each variable to keep track of AbleClauses that reference that variable. Whenever each variable updates its "raw" value, the variable calls updateReferences() to perform special handling. "Special handling" in this case is a call back into the ruleset so that the ruleset can inform the inference engine of clauses that may need to be re-evaluated.
The flow of control is as follows:
Field Summary | |
---|---|
protected AbleRuleSet |
myRuleSet
The ruleset that created this object and stuck it into an AbleVariable object. |
Fields inherited from class java.util.Vector |
---|
capacityIncrement, elementCount, elementData |
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
protected |
AbleClauseReferences()
Create a new set of references of which to keep track. |
protected |
AbleClauseReferences(AbleRuleSet theRuleSet)
Create a new set of references of which to keep track. |
Method Summary | |
---|---|
void |
setRuleSet(AbleRuleSet theRuleSet)
Set the ruleset which contains the inference engine that is evaluating clauses containing the variable in which this references object is stored. <smile> |
Methods inherited from class com.ibm.able.data.AbleReferences |
---|
updateReferences |
Methods inherited from class java.util.Vector |
---|
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
iterator, listIterator, listIterator |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
iterator, listIterator, listIterator |
Field Detail |
protected AbleRuleSet myRuleSet
Initialized to null and updated by a constructor or a call to setRuleSet().
Constructor Detail |
protected AbleClauseReferences()
The setRuleSet() method must be used before the containing variable is referenced by an inference engine.
protected AbleClauseReferences(AbleRuleSet theRuleSet)
theRuleSet
- The ruleset which contains the variable in which this
clause references object is embedded.
Method Detail |
public final void setRuleSet(AbleRuleSet theRuleSet)
theRuleSet
- The ruleset which contains the variable in which this
clause references object is embedded.
|
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 |