Class IpogConfiguration.Builder

  • Enclosing class:
    IpogConfiguration

    public static final class IpogConfiguration.Builder
    extends java.lang.Object
    A implementation of the Builder patter to create a new IpogConfiguration.
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • testModel

        public IpogConfiguration.Builder testModel​(TestModel testModel)
        Parameters:
        testModel - used to generate the test suite. As this contains all main information and the algorithm cannot work without it, this parameter is required. If it is not set before build() is called, a NullPointerException will be thrown
        Returns:
        this
      • order

        public IpogConfiguration.Builder order​(ParameterOrder order)
        Parameters:
        order - used to determine in which order the parameters are included into the test suite during the horizontal expansion of IPOG. This is an optional field. If not set, the default of StrengthBasedParameterOrder is used for a more optimal generation time and test suite size
        Returns:
        this
      • reporter

        public IpogConfiguration.Builder reporter​(Reporter reporter)
        Parameters:
        reporter - a reporter which should be used to carry important information to the outside. This is an optional field. If not set, the default of a no operation reporter is used
        Returns:
        this
      • build

        public IpogConfiguration build()
        Returns:
        a new complete configuration which can be used to construct an instance of IpogAlgorithm
        Throws:
        java.lang.NullPointerException - if any parameter has been set to null or if the testModel has not been set