EVEDemo.PSWEEP
Class PPUSet

java.lang.Object
  |
  +--EVEDemo.PSWEEP.UpdateDataSet
        |
        +--EVEDemo.PSWEEP.PPUSet

public class PPUSet
extends UpdateDataSet
implements java.io.Serializable

This class implement a set of data updates with a specific size. It represents the Parallel Processing Update Set.

See Also:
Serialized Form

Field Summary
(package private)  int SizeOfSet
          The size of this set.
 
Fields inherited from class EVEDemo.PSWEEP.UpdateDataSet
enum, Set
 
Constructor Summary
PPUSet(int i)
          Construct a set with size i.
 
Method Summary
 boolean append(java.lang.Object elm)
          Append one element to this set.
 boolean isFull()
          Check whether the set is full.
 boolean isRelated(UpdateData du)
          Check if the specific data update is in the set.
 
Methods inherited from class EVEDemo.PSWEEP.UpdateDataSet
addElement, elementAt, exists, peek, peekNext, removeElement, size
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

SizeOfSet

int SizeOfSet
The size of this set.
Constructor Detail

PPUSet

public PPUSet(int i)
Construct a set with size i.
Parameters:
i - the size of set.
Method Detail

append

public boolean append(java.lang.Object elm)
Append one element to this set. If the set still has space, we add it, otherwise, we return false.
Parameters:
elm - to be added element
Returns:
true means element added, otherwise false.

isFull

public boolean isFull()
Check whether the set is full.
Returns:
true means the set is full, false means the set is not full.

isRelated

public boolean isRelated(UpdateData du)
Check if the specific data update is in the set. It will check all the elements in this set, if one of them is earlier than the specific data update, then return true, else return false.
Parameters:
du - the specific data update need to be checked.
Returns:
true if related, otherwise false.