edu.jas.util
Class CartesianProductLong

java.lang.Object
  extended by edu.jas.util.CartesianProductLong
All Implemented Interfaces:
java.lang.Iterable<java.util.List<java.lang.Long>>

public class CartesianProductLong
extends java.lang.Object
implements java.lang.Iterable<java.util.List<java.lang.Long>>

Cartesian product for Long with iterator. Similar to CartesianProduct but returns only tuples of given total degree.

Author:
Heinz Kredel

Field Summary
 java.util.List<LongIterable> comps
          data structure.
 long upperBound
           
 
Constructor Summary
CartesianProductLong(java.util.List<LongIterable> comps, long ub)
          CartesianProduct constructor.
 
Method Summary
 java.util.Iterator<java.util.List<java.lang.Long>> iterator()
          Get an iterator over subsets.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

comps

public final java.util.List<LongIterable> comps
data structure.


upperBound

public final long upperBound
Constructor Detail

CartesianProductLong

public CartesianProductLong(java.util.List<LongIterable> comps,
                            long ub)
CartesianProduct constructor.

Parameters:
comps - components of the cartesian product.
ub - an upper bound for the total degree of the elements.
Method Detail

iterator

public java.util.Iterator<java.util.List<java.lang.Long>> iterator()
Get an iterator over subsets.

Specified by:
iterator in interface java.lang.Iterable<java.util.List<java.lang.Long>>
Returns:
an iterator.