Class ExpVectorIterable
java.lang.Object
edu.jas.ps.ExpVectorIterable
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final boolean(package private) final intprotected long -
Constructor Summary
ConstructorsConstructorDescriptionExpVectorIterable(int nv) Constructor.ExpVectorIterable(int nv, boolean all, long ub) Constructor.ExpVectorIterable(int nv, long ub) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionlongGet the upper bound for the iterator.iterator()Get an iterator over ExpVector.voidsetUpperBound(long ub) Set the upper bound for the iterator.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
upperBound
protected long upperBound -
infinite
final boolean infinite -
nvar
final int nvar
-
-
Constructor Details
-
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.
-
-
Method Details
-
setUpperBound
public void setUpperBound(long ub) Set the upper bound for the iterator.- Parameters:
ub- an upper bound for the iterator elements.
-
getUpperBound
public long getUpperBound()Get the upper bound for the iterator.- Returns:
- the upper bound for the iterator elements.
-
iterator
-