public interface ModelConverter
InputParameterModel to a CombinatorialTestModel.
Additionally, all sub-resources like parameters, combinations, and constraints can be converted.| Modifier and Type | Method and Description |
|---|---|
int[] |
convertCombination(Combination combination)
Converts a
Combination object to an integer array representation with the corresponding value number. |
Combination |
convertCombination(int[] combination)
Converts a combinations represented by an integer array into a
Combination object with the corresponding
parameters and values. |
TupleList |
convertConstraint(Constraint constraint)
Converts a
Constraint object into a TupleList representation which is equal. |
Constraint |
convertConstraint(TupleList constraint)
Converts a
TupleList object into a Constraint representation which is equal. |
Parameter |
convertParameter(int parameter)
Converts an integer representation back to a
Parameter object. |
int |
convertParameter(Parameter parameter)
Converts a
Parameter object into an equivalent integer representation. |
Value |
convertValue(int parameter,
int value)
Converts the integer representation of a value into a
Value object. |
int |
convertValue(Parameter parameter,
Value value)
Converts a
Value to an integer representation. |
CombinatorialTestModel |
getConvertedModel() |
InputParameterModel |
getModel() |
InputParameterModel getModel()
ModelConverterCombinatorialTestModel getConvertedModel()
getModel())int[] convertCombination(Combination combination)
Combination object to an integer array representation with the corresponding value number.
If the array returned by this method is given into convertCombination(int[]), a Combination
equal to the original one should be returned.combination - the combination to be converted. Must not be nullCombination convertCombination(int[] combination)
Combination object with the corresponding
parameters and values.combination - the combination to be converted. Must not be nullCombination so that it matches the model conversionTupleList convertConstraint(Constraint constraint)
Constraint object into a TupleList representation which is equal. If the
TupleList returned by this method is given to convertConstraint(TupleList), the original
constraint will be returned.constraint - the constraint to convert. Needs to be one in the original model, otherwise success of this
method is not guaranteed. Must not be nullTupleList representation so that it matches the model conversionConstraint convertConstraint(TupleList constraint)
TupleList object into a Constraint representation which is equal.constraint - the constraint to convert. Needs to be one in the original model, otherwise success of this
method is not guaranteed. Must not be nullConstraint representation so that it matches the model conversionint convertParameter(Parameter parameter)
Parameter object into an equivalent integer representation. If the integer returned by
this method is given to convertParameter(int), the original parameter is returned.parameter - the parameter to convert. Needs to be in the original model, otherwise success of this method
is not guaranteed. Must not be nullParameter convertParameter(int parameter)
Parameter object.parameter - the parameter to convert. Needs to be in the original model, otherwise success of this method
is not guaranteed. Must not be negativeParameter representation so that it matches the model conversionint convertValue(Parameter parameter, Value value)
Value to an integer representation. As values are only unique in their corresponding
Parameters, the parameter is needed as well. It can be converted using
convertParameter(Parameter). If the converted value and parameter are given to
convertValue(int, int), the original value is returned.parameter - the parameter in which the value is locatedvalue - the value to convertValue convertValue(int parameter, int value)
Value object. The parameter is needed since
values are only unique in the context of their parameters. The parameter can be converted with
convertParameter(int).parameter - the parameter in which the value is locatedvalue - the value to convertValue representation so that it matches the model conversionCopyright © 2019. All rights reserved.