Class GeneratorRandom<T>

  • Type Parameters:
    T - Sequence element type.
    All Implemented Interfaces:
    Generator<T>, ru.ispras.testbase.knowledge.iterator.Iterator<java.util.List<T>>

    public final class GeneratorRandom<T>
    extends java.lang.Object
    implements Generator<T>
    GeneratorRandom uses another randomly selected generator to generate instruction sequences. Each time the generator is initialized, a new delegate generator is selected.
    • Constructor Summary

      Constructors 
      Constructor Description
      GeneratorRandom​(ru.ispras.fortress.randomizer.Variate<ru.ispras.testbase.knowledge.iterator.Iterator<java.util.List<T>>> variate)  
    • Constructor Detail

      • GeneratorRandom

        public GeneratorRandom​(ru.ispras.fortress.randomizer.Variate<ru.ispras.testbase.knowledge.iterator.Iterator<java.util.List<T>>> variate)
    • Method Detail

      • 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 GeneratorRandom<T> clone()
        Specified by:
        clone in interface ru.ispras.testbase.knowledge.iterator.Iterator<T>
        Overrides:
        clone in class java.lang.Object