Class GeneratorBuilder<T>
- java.lang.Object
-
- ru.ispras.microtesk.test.sequence.GeneratorBuilder<T>
-
- Type Parameters:
T
- Sequence element type.
public final class GeneratorBuilder<T> extends java.lang.Object
GeneratorBuilder
implements the test sequence generator.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_COMBINATOR
The default combinator.static java.lang.String
DEFAULT_COMPOSITOR
The default compositor.static java.lang.String
DEFAULT_OBFUSCATOR
The default obfuscator.static java.lang.String
DEFAULT_PERMUTATOR
The default permutator.static java.lang.String
DEFAULT_REARRANGER
The default rearranger.
-
Constructor Summary
Constructors Constructor Description GeneratorBuilder(boolean isSequence, boolean isIterate, java.util.Map<java.lang.String,java.lang.Object> attributes)
Constructs a test sequence generator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIterator(ru.ispras.testbase.knowledge.iterator.Iterator<java.util.List<T>> iterator)
Adds an iterator into the list.Generator<T>
build()
Builds and returns the test sequence generator.
-
-
-
Field Detail
-
DEFAULT_COMBINATOR
public static final java.lang.String DEFAULT_COMBINATOR
The default combinator.- See Also:
- Constant Field Values
-
DEFAULT_PERMUTATOR
public static final java.lang.String DEFAULT_PERMUTATOR
The default permutator.- See Also:
- Constant Field Values
-
DEFAULT_COMPOSITOR
public static final java.lang.String DEFAULT_COMPOSITOR
The default compositor.- See Also:
- Constant Field Values
-
DEFAULT_REARRANGER
public static final java.lang.String DEFAULT_REARRANGER
The default rearranger.- See Also:
- Constant Field Values
-
DEFAULT_OBFUSCATOR
public static final java.lang.String DEFAULT_OBFUSCATOR
The default obfuscator.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GeneratorBuilder
public GeneratorBuilder(boolean isSequence, boolean isIterate, java.util.Map<java.lang.String,java.lang.Object> attributes)
Constructs a test sequence generator.- Parameters:
isSequence
- Specifies whether a single sequence must be generated.isIterate
- Specifies whether a collection of sequences returned by nested iterators must be generated.attributes
- Attributes describing the properties of engines to be applied by the generator.- Throws:
java.lang.IllegalArgumentException
- if bothisSequence
andisIterate
aretrue
; if theattributes
argument isnull
.
-
-
Method Detail
-
addIterator
public void addIterator(ru.ispras.testbase.knowledge.iterator.Iterator<java.util.List<T>> iterator)
Adds an iterator into the list.- Parameters:
iterator
- the sub-iterator to be added to the list.
-
-