Class PrimitiveSeed
- java.lang.Object
-
- de.rwth.swc.coffee4j.algorithmic.model.PrimitiveSeed
-
public class PrimitiveSeed extends Object
A representation of (partial) seed test cases build upon primitive data types.A (partial) seed test case is a combination which is used as a base for constructing combinatorial test suites. For example, if some combinations greater than the testing strength t are so important that they must always be tested, a seed can be given to include it in the final test suite.
A (partial) seed test case is characterized by a given combination, the
SeedModeand a priority. The priority should only be used relative to other seed priorities and should not be combined with the general combinatorial coverage criterion which must always be upheld. If a seed should have no priority, useNO_PRIORITY.
-
-
Field Summary
Fields Modifier and Type Field Description static doubleNO_PRIORITY
-
Constructor Summary
Constructors Constructor Description PrimitiveSeed(int[] combination, SeedMode mode, double priority)Construct a new instance with the given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)int[]getCombination()SeedModegetMode()doublegetPriority()inthashCode()booleanhasPriority()StringtoString()
-
-
-
Field Detail
-
NO_PRIORITY
public static final double NO_PRIORITY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PrimitiveSeed
public PrimitiveSeed(int[] combination, SeedMode mode, double priority)Construct a new instance with the given parameters.- Parameters:
combination- the (partial) seed test case. Must not benullmode- the mode of the seed. Ifnull, the default ofSeedMode.NON_EXCLUSIVEis usedpriority- defines the importance of this seed relative to other seeds. If a combination is of no particular importance, useNO_PRIORITY.
-
-
Method Detail
-
getCombination
public int[] getCombination()
-
getMode
public SeedMode getMode()
-
getPriority
public double getPriority()
-
hasPriority
public boolean hasPriority()
-
-