Class GeneratorBuilder<T>

  • Type Parameters:
    T - Sequence element type.

    public final class GeneratorBuilder<T>
    extends java.lang.Object
    GeneratorBuilder implements the test sequence generator.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 both isSequence and isIterate are true; if the attributes argument is null.
    • 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.
      • build

        public Generator<T> build()
        Builds and returns the test sequence generator.
        Returns:
        the test sequence generator.