Class CompositorNesting<T>

  • All Implemented Interfaces:
    Compositor<T>, ru.ispras.testbase.knowledge.iterator.Iterator<T>

    public final class CompositorNesting<T>
    extends CompositeIterator<T>
    CompositorNesting implements the nesting composition of iterators.
    • Constructor Detail

      • CompositorNesting

        public CompositorNesting()
    • Method Detail

      • onInit

        protected void onInit()
        The callback method called in the init method.
      • onNext

        public void onNext()
        The callback method called in the next method.
      • choose

        protected ru.ispras.testbase.knowledge.iterator.Iterator<T> choose()
        Selects an iterator whose value will be used at the current step.
        Returns:
        one of the iterators from the compositor's list.
      • initialize

        public void initialize​(java.util.List<ru.ispras.testbase.knowledge.iterator.Iterator<T>> iterators)
        Specified by:
        initialize in interface Compositor<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 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.compositor.CompositorBase<T> clone()
        Specified by:
        clone in interface ru.ispras.testbase.knowledge.iterator.Iterator<T>
        Overrides:
        clone in class java.lang.Object