jedd
Interface Relation


public interface Relation


Method Summary
 java.util.Iterator iterator()
          Returns an iterator over the components in the relation.
 java.util.Iterator iterator(Attribute[] wanted)
          Returns an iterator over the tuples in the relation.
 int numNodes()
          Returns the number of BDD nodes used to represent the relation.
 long size()
          Returns the number of tuples in the relation.
 java.lang.String toString()
          Returns a string representation listing all the tuples in the relation.
 

Method Detail

size

public long size()
Returns the number of tuples in the relation.


numNodes

public int numNodes()
Returns the number of BDD nodes used to represent the relation.


iterator

public java.util.Iterator iterator(Attribute[] wanted)
Returns an iterator over the tuples in the relation. Each tuple is returned as an Object array of its components. The argument to this method must be an array containing the attributes of this relation. In each tuple array returned by the iterator, the components will appear in the same order as the order of the attributes in the wanted argument to this method. When a relation only has a single attribute, it is easier to iterate over it using the other iterator method. The present iterator is more general in that it works for relations with arbitrary numbers of attributes.


iterator

public java.util.Iterator iterator()
Returns an iterator over the components in the relation. This method may only be used on relations having exactly one attribute. The iterator returns the single component of each tuple, one tuple at a time. This iterator is easier to use than the iterator above, but works only on relations with a single attribute.


toString

public java.lang.String toString()
Returns a string representation listing all the tuples in the relation.