jeops.conflict
Class AbstractConflictSet
java.lang.Object
|
+--jeops.conflict.AbstractConflictSet
- Direct Known Subclasses:
- DefaultConflictSet, LRUConflictSet, MRUConflictSet, OneShotConflictSet, PriorityConflictSet
- public abstract class AbstractConflictSet
- extends java.lang.Object
- implements ConflictSet
This class provides a skeletal implementation of the ConflictSet
interface to minimize the effort required to implement this interface.
It helps mainly in dealing with the registered listeners for conflict
set events. Its subclasses must invoke the methods
elementAdded
and elementRemoved
wheneved
applicable to make full use of the notification mechanism this skeleton
provides.
- Version:
- 0.01 08 Jun 2000
- Author:
- Carlos Figueira Filho (csff@cin.ufpe.br)
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
AbstractConflictSet
public AbstractConflictSet()
- Class constructor.
addInternalConflictSetListener
public void addInternalConflictSetListener(InternalConflictSetListener l)
- Adds the specified listener to receive events from
this conflict set.
- Specified by:
- addInternalConflictSetListener in interface ConflictSet
- Parameters:
l
- the conflict set listener
removeInternalConflictSetListener
public void removeInternalConflictSetListener(InternalConflictSetListener l)
- Removes the specified listener so that it no longer
receives events from this conflict set.
- Specified by:
- removeInternalConflictSetListener in interface ConflictSet
- Parameters:
l
- the conflict set listener
getModifiedObjects_1D
public static java.util.Vector getModifiedObjects_1D(java.util.Vector firableRules,
java.lang.Object obj)
- Auxiliar method, used to return all objects that were modified in
response to a modification in a given object. This method should be used when the
firable rules are stored in a linear (unidimensional) Vector.
- Parameters:
firableRules
- the Vector that stores the firable rules.obj
- the given object.- Returns:
- a vector with all objects that must be declared as modified
due to the modification in this one.
getModifiedObjects_2D
public static java.util.Vector getModifiedObjects_2D(java.util.Vector firableRules,
java.lang.Object obj)
- Auxiliar method, used to return all objects that were modified in
response to a modification in a given object. This method should be used when the
firable rules are stored in a matricial (bidimensional) Vector.
- Parameters:
firableRules
- the Vector that stores the firable rules.obj
- the given object.- Returns:
- a vector with all objects that must be declared as modified
due to the modification in this one.