|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jeops.conflict.AbstractConflictSet | +--jeops.conflict.DefaultConflictSet | +--jeops.conflict.NaturalConflictSet
A conflict set whose conflict resolution policy specifies that no rule can be fired more than once with the same objects. This conflict set requires a large amount of memory to store the history of rule firing, so it must be used with care. It also tends to get inefficient when the history grows.
Field Summary | |
private java.util.Vector |
history
The history rule firing. |
Fields inherited from class jeops.conflict.DefaultConflictSet |
fireableRules |
Fields inherited from class jeops.conflict.AbstractConflictSet |
debug,
listeners |
Constructor Summary | |
NaturalConflictSet()
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. |
ConflictSetElement |
nextElement()
Returns the next rule to be fired. |
Methods inherited from class jeops.conflict.DefaultConflictSet |
isEmpty,
removeElementsWith |
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.Vector history
Constructor Detail |
public NaturalConflictSet()
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 ConflictSetElement nextElement() throws NoMoreElementsException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |