|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines the required operations that a conflict set should implement.
The conflict set is the place where the fireable rules are stored, and
one of them is to be chosen to fire at some moment.
It's up to the implementing classes to determine the policy used to
select which rule to fire.
The implementations of the conflict set must also be able to notify any registered listener that some element has been added to or removed from the conflict set.
ConflictSetEvent
s.Method Summary | |
void |
addInternalConflictSetListener(InternalConflictSetListener l)
Adds the specified listener to receive events from this conflict set. |
void |
flush()
Removes all rules from this conflict set, as well as cleaning any history that might have been stored. |
java.util.Vector |
getModifiedObjects(java.lang.Object obj)
Returns all objects that were modified in response to a modification in the given object. |
void |
insertElement(ConflictSetElement element)
Inserts a rule instantiation. |
boolean |
isEmpty()
Checks whether this set has any elements. |
ConflictSetElement |
nextElement()
Returns the next rule to be fired. |
void |
removeElementsWith(java.lang.Object obj)
Remove all elements from this set that uses the given object in its instantiations. |
void |
removeInternalConflictSetListener(InternalConflictSetListener l)
Removes the specified listener so that it no longer receives events from this conflict set. |
Method Detail |
public void flush()
public void insertElement(ConflictSetElement element)
element
- a conflict set element that holds the rule index as
well as the objects bound to the rule declarations.public boolean isEmpty()
false
if there is at least one fireable rule
in this set; true
otherwise.public ConflictSetElement nextElement() throws NoMoreElementsException
public void removeElementsWith(java.lang.Object obj)
obj
- the given objectpublic java.util.Vector getModifiedObjects(java.lang.Object obj)
obj
- the given objectpublic void addInternalConflictSetListener(InternalConflictSetListener l)
l
- the conflict set listenerpublic void removeInternalConflictSetListener(InternalConflictSetListener l)
l
- the conflict set listener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |