jeops.conflict
Class NaturalConflictSet

java.lang.Object
  |
  +--jeops.conflict.AbstractConflictSet
        |
        +--jeops.conflict.DefaultConflictSet
              |
              +--jeops.conflict.NaturalConflictSet

public class NaturalConflictSet
extends DefaultConflictSet

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.

Version:
0.01 25 May 2000
Author:
Carlos Figueira Filho (csff@di.ufpe.br)

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.
 
Methods inherited from class jeops.conflict.DefaultConflictSet
getModifiedObjects, isEmpty, nextElement, removeElementsWith
 
Methods inherited from class jeops.conflict.AbstractConflictSet
addInternalConflictSetListener, getModifiedObjects_1D, getModifiedObjects_2D, removeInternalConflictSetListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NaturalConflictSet

public NaturalConflictSet()
Class constructor.
Method Detail

flush

public void flush()
Removes all rules from this conflict set, as well as cleaning any history that might have been stored.
Overrides:
flush in class DefaultConflictSet

insertElement

public void insertElement(ConflictSetElement element)
Inserts a rule instantiation.
Overrides:
insertElement in class DefaultConflictSet
Parameters:
element - a conflict set element that holds the rule index as well as the objects bound to the rule declarations.