Class MixedStrengthParameterOrder
- java.lang.Object
-
- de.rwth.swc.coffee4j.algorithmic.sequential.generator.ipog.MixedStrengthParameterOrder
-
- All Implemented Interfaces:
ParameterOrder
public class MixedStrengthParameterOrder extends Object implements ParameterOrder
A parameter order based on the normal parameter order and the testing strength. The initial parameters are the first t parameters if t is the testing strength, and all other parameters are returned separately. This means parameters 1, 2, 3, 4, 5 get split into initial 1, 2 and remaining 3, 4, 5 if testing strength = 2.
-
-
Constructor Summary
Constructors Constructor Description MixedStrengthParameterOrder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]
getInitialParameters(TestModel model)
All combinations which should be used in the first initial step of IPOG.int[]
getRemainingParameters(TestModel model)
The order of all remaining parameters.
-
-
-
Method Detail
-
getInitialParameters
public int[] getInitialParameters(TestModel model)
Description copied from interface:ParameterOrder
All combinations which should be used in the first initial step of IPOG. In this step the cartesian product of all returned parameters is calculated. This means that the strength may need to be considered.- Specified by:
getInitialParameters
in interfaceParameterOrder
- Parameters:
model
- the test configuration which includes the strength configuration- Returns:
- all parameters which should be constructed using the cartesian product. This explicitly means that
these parameters are always in oldParameters in a
ParameterCombinationFactory
-
getRemainingParameters
public int[] getRemainingParameters(TestModel model)
Description copied from interface:ParameterOrder
The order of all remaining parameters. The parameter which should be expanded in the first horizontal expansion should be at the first place in the array (index 0).- Specified by:
getRemainingParameters
in interfaceParameterOrder
- Parameters:
model
- the test configuration which includes the strength configuration- Returns:
- all parameters which were not already returned by
ParameterOrder.getInitialParameters(TestModel)
in any order
-
-