Class TupleBasedConstraint
- java.lang.Object
-
- de.rwth.swc.coffee4j.engine.configuration.model.constraints.AbstractConstraint
-
- de.rwth.swc.coffee4j.engine.configuration.model.constraints.tuplebased.TupleBasedConstraint
-
- All Implemented Interfaces:
Constraint
public class TupleBasedConstraint extends AbstractConstraint
Represents a constraint for combinatorial testing based on a forbidden tuple.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.rwth.swc.coffee4j.engine.configuration.model.constraints.Constraint
Constraint.ConstraintConstants
-
-
Constructor Summary
Constructors Constructor Description TupleBasedConstraint(String name, List<String> parameterNames, Combination tuple)
TupleBasedConstraint(String name, List<String> parameterNames, ConstraintStatus constraintStatus, Combination tuple)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkIfValid(Combination combination)
Checks whether the given combination is valid or not.Combination
getCombination()
ConstraintConverterFactory
getConverterFactory()
-
Methods inherited from class de.rwth.swc.coffee4j.engine.configuration.model.constraints.AbstractConstraint
getConstraintStatus, getName, getParameterNames, setName, toString
-
-
-
-
Constructor Detail
-
TupleBasedConstraint
public TupleBasedConstraint(String name, List<String> parameterNames, Combination tuple)
- Parameters:
name
- name to improve readability without further semanticsparameterNames
- the names of all involved parameters. Must not be, or containnull
, or be emptytuple
- the forbidden tuple
-
TupleBasedConstraint
public TupleBasedConstraint(String name, List<String> parameterNames, ConstraintStatus constraintStatus, Combination tuple)
- Parameters:
name
- name to improve readability without further semanticsparameterNames
- the names of all involved parameters. Must not be, or containnull
, or be emptyconstraintStatus
- status is either Unknown or Correct which is related to conflict detectiontuple
- the forbidden tuple
-
-
Method Detail
-
checkIfValid
public boolean checkIfValid(Combination combination)
Description copied from interface:Constraint
Checks whether the given combination is valid or not.- Parameters:
combination
- combination to be checked.- Returns:
true
iff the combination is valid.
-
getConverterFactory
public ConstraintConverterFactory getConverterFactory()
- Returns:
ConstraintConverterFactory
that can be used to convert this constraint.
-
getCombination
public Combination getCombination()
-
-