Class GeneratorRandom<T>
- java.lang.Object
-
- ru.ispras.microtesk.test.sequence.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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeneratorRandom<T>
clone()
boolean
hasValue()
void
init()
void
next()
void
stop()
java.util.List<T>
value()
-
-
-
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 interfaceru.ispras.testbase.knowledge.iterator.Iterator<T>
-
hasValue
public boolean hasValue()
- Specified by:
hasValue
in interfaceru.ispras.testbase.knowledge.iterator.Iterator<T>
-
value
public java.util.List<T> value()
- Specified by:
value
in interfaceru.ispras.testbase.knowledge.iterator.Iterator<T>
-
next
public void next()
- Specified by:
next
in interfaceru.ispras.testbase.knowledge.iterator.Iterator<T>
-
stop
public void stop()
- Specified by:
stop
in interfaceru.ispras.testbase.knowledge.iterator.Iterator<T>
-
clone
public GeneratorRandom<T> clone()
- Specified by:
clone
in interfaceru.ispras.testbase.knowledge.iterator.Iterator<T>
- Overrides:
clone
in classjava.lang.Object
-
-