EVEDemo.PSWEEP
Class UpdateDataSet

java.lang.Object
  |
  +--EVEDemo.PSWEEP.UpdateDataSet
Direct Known Subclasses:
PPUSet, RPUSet

public class UpdateDataSet
extends java.lang.Object
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)  java.util.Enumeration enum
           
(package private)  java.util.Vector Set
          In order to synchronize, I am going to use the Vector.
 
Constructor Summary
UpdateDataSet()
          Construct a UpdateDataSet.
 
Method Summary
 void addElement(java.lang.Object obj)
           
 java.lang.Object elementAt(int index)
           
 boolean exists(int j)
          Check whether a data update from IS j is stored in the UpdateDataSet.
 Relation peek(int theIndex)
          Get the data update from a specific information sources.
 Relation peekNext(int theIndex)
          Get the next data update from the specific information sources.
 boolean removeElement(java.lang.Object obj)
           
 int size()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

Set

java.util.Vector Set
In order to synchronize, I am going to use the Vector.

enum

java.util.Enumeration enum
Constructor Detail

UpdateDataSet

public UpdateDataSet()
Construct a UpdateDataSet.
Method Detail

addElement

public void addElement(java.lang.Object obj)

elementAt

public java.lang.Object elementAt(int index)

size

public int size()

removeElement

public boolean removeElement(java.lang.Object obj)

peek

public Relation peek(int theIndex)
              throws java.lang.Exception
Get the data update from a specific information sources.

peekNext

public Relation peekNext(int theIndex)
                  throws java.lang.Exception
Get the next data update from the specific information sources. It should be used with the peek() function.

exists

public boolean exists(int j)
Check whether a data update from IS j is stored in the UpdateDataSet.
Parameters:
j - the index of the IS
Returns:
true if there is DUj in the set, otherwise false.