|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jeops.conflict.AbstractConflictSet | +--jeops.examples.monkeys.MEAConflictSet
The conflict resolution policy used to solve the monkeys and bananas problem.
Inner Class Summary | |
private static class |
MEAConflictSet.CSEComparator
Inner class used to compare two conflict set elements (CSEs) |
Field Summary | |
private java.util.SortedSet |
set
The actual conflict set. |
Fields inherited from class jeops.conflict.AbstractConflictSet |
debug,
listeners |
Constructor Summary | |
MEAConflictSet()
Class constructor. |
Method Summary | |
void |
flush()
Removes all rules from this conflict set, as well as cleaning any history that might have been stored. |
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. |
Methods inherited from class jeops.conflict.AbstractConflictSet |
addInternalConflictSetListener,
elementAdded,
elementRemoved,
fireInternalElementAddedEvent,
fireInternalElementRemovedEvent,
removeElementsWith_1D,
removeElementsWith_2D,
removeInternalConflictSetListener |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.util.SortedSet set
Constructor Detail |
public MEAConflictSet()
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 object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |