Package edu.jas.ps
Class ExpVectorIterator
java.lang.Object
edu.jas.ps.ExpVectorIterator
ExpVector iterator using CartesianProductLongIterator.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionExpVectorIterator
(int nv) ExpVector iterator constructor.protected
ExpVectorIterator
(int nv, boolean inf, long ub) ExpVector iterator constructor.ExpVectorIterator
(int nv, long ub) ExpVector iterator constructor. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
current
ExpVector currentdata structure. -
liter
-
totalDegree
protected int totalDegree -
empty
protected boolean empty -
upperBound
final long upperBound -
infinite
final boolean infinite -
nvar
final int nvar
-
-
Constructor Details
-
ExpVectorIterator
public ExpVectorIterator(int nv) ExpVector iterator constructor.- Parameters:
nv
- number of variables.
-
ExpVectorIterator
public ExpVectorIterator(int nv, long ub) ExpVector iterator constructor.- Parameters:
nv
- number of variables.ub
- upper bound for the components.
-
ExpVectorIterator
protected ExpVectorIterator(int nv, boolean inf, long ub) ExpVector iterator constructor.- Parameters:
nv
- number of variables.inf
- true, if all elements between 0 and upper bound are enumerated, false, if only elements of exact upper bund are to be processed.ub
- an upper bound for the entries.
-
-
Method Details
-
hasNext
public boolean hasNext()Test for availability of a next long. -
next
Get next ExpVector. -
remove
public void remove()Remove a tuple if allowed.
-