Package edu.jas.ps

Class ExpVectorIterable

  • All Implemented Interfaces:
    java.lang.Iterable<ExpVector>

    public class ExpVectorIterable
    extends java.lang.Object
    implements java.lang.Iterable<ExpVector>
    Iterable for ExpVector, using total degree enumeration.
    Author:
    Heinz Kredel
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected long upperBound  
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • 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.
    • Method Detail

      • 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

        public java.util.Iterator<ExpVectoriterator()
        Get an iterator over ExpVector.
        Specified by:
        iterator in interface java.lang.Iterable<ExpVector>
        Returns:
        an iterator.