Class CombinatorRandom<T>

  • All Implemented Interfaces:
    Combinator<T>, ru.ispras.testbase.knowledge.iterator.Iterator<java.util.List<T>>

    public final class CombinatorRandom<T>
    extends CompositeIterator<T>
    CombinatorRandom implements the random combinator of iterators.
    • Constructor Detail

      • CombinatorRandom

        public CombinatorRandom()
    • Method Detail

      • onInit

        public void onInit()
        The callback method called in the init method.
      • getValue

        public T getValue​(int i)
        The callback method called in the value method.
        Parameters:
        i - the iterator index.
        Returns:
        the value of the i-th iterator (null if the iterator has been exhausted, i.e., no value is available).
      • doNext

        public boolean doNext()
        The callback method called in the next method.
        Returns:
        false iff it the combinator has been exhausted.
      • initialize

        public void initialize​(java.util.List<ru.ispras.testbase.knowledge.iterator.Iterator<T>> iterators)
        Specified by:
        initialize in interface Combinator<T>
      • init

        public void init()
        Specified by:
        init in interface ru.ispras.testbase.knowledge.iterator.Iterator<T>
      • hasValue

        public boolean hasValue()
        Specified by:
        hasValue in interface ru.ispras.testbase.knowledge.iterator.Iterator<T>
      • value

        public java.util.List<T> value()
        Specified by:
        value in interface ru.ispras.testbase.knowledge.iterator.Iterator<T>
      • next

        public void next()
        Specified by:
        next in interface ru.ispras.testbase.knowledge.iterator.Iterator<T>
      • stop

        public void stop()
        Specified by:
        stop in interface ru.ispras.testbase.knowledge.iterator.Iterator<T>
      • clone

        public ru.ispras.microtesk.test.sequence.combinator.CombinatorBase<T> clone()
        Specified by:
        clone in interface ru.ispras.testbase.knowledge.iterator.Iterator<T>
        Overrides:
        clone in class java.lang.Object