Package edu.jas.ps
Class ExpVectorIterable
- java.lang.Object
-
- edu.jas.ps.ExpVectorIterable
-
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
infinite
(package private) int
nvar
protected long
upperBound
-
Constructor Summary
Constructors Constructor Description ExpVectorIterable(int nv)
Constructor.ExpVectorIterable(int nv, boolean all, long ub)
Constructor.ExpVectorIterable(int nv, long ub)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getUpperBound()
Get the upper bound for the iterator.java.util.Iterator<ExpVector>
iterator()
Get an iterator over ExpVector.void
setUpperBound(long ub)
Set the upper bound for the iterator.
-
-
-
Constructor Detail
-
ExpVectorIterable
public ExpVectorIterable(int nv)
Constructor.- Parameters:
nv
- number of variables.
-
ExpVectorIterable
public ExpVectorIterable(int nv, long ub)
Constructor.- Parameters:
nv
- number of variables.ub
- upper bound for the components.
-
ExpVectorIterable
public ExpVectorIterable(int nv, boolean all, long ub)
Constructor.- Parameters:
nv
- number of variables.all
- true, if all elements between 0 and upper bound are enumerated, false, if only elements of exact upper bund are to be processed.ub
- upper bound for the components.
-
-