Package de.rwth.swc.coffee4j.engine
Class TupleList
- java.lang.Object
-
- de.rwth.swc.coffee4j.engine.TupleList
-
public class TupleList extends java.lang.ObjectClass representing a constraint via storing all sub-combinations which are not allowed. Instead of storing complete sub-combinations (with field havingCombinationUtil.NO_VALUE), only the values of parameters actually constrained are saved. This means that if the test input [0, 1, 2, 3, 4] should not be allowed by this constraint and the constraint operates on the first and third parameter, only [0, 2] will be stored.
-
-
Constructor Summary
Constructors Constructor Description TupleList(int id, int[] involvedParameters, java.util.Collection<int[]> tuples)TupleList(int id, int[] involvedParameters, java.util.Collection<int[]> tuples, boolean markedAsCorrect)Creates a new tuple list out of a given id, the involved parameters, and a collection of tuples which should not be allowed.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)intgetId()int[]getInvolvedParameters()java.util.List<int[]>getTuples()inthashCode()booleanisMarkedAsCorrect()java.lang.StringtoString()
-
-
-
Constructor Detail
-
TupleList
public TupleList(int id, int[] involvedParameters, java.util.Collection<int[]> tuples)
-
TupleList
public TupleList(int id, int[] involvedParameters, java.util.Collection<int[]> tuples, boolean markedAsCorrect)Creates a new tuple list out of a given id, the involved parameters, and a collection of tuples which should not be allowed. The tuples should be in the format specified byTupleList.- Parameters:
id- the id of the list. This should be unique perTestModelinvolvedParameters- the indices of all involved parameterstuples- all tuples which are not allowed
-
-
Method Detail
-
getId
public int getId()
- Returns:
- the id of the list. Unique to its
TestModel
-
getInvolvedParameters
public int[] getInvolvedParameters()
- Returns:
- the indices of all parameters involved in the list
-
getTuples
public java.util.List<int[]> getTuples()
- Returns:
- all tuples which should not be allowed in the format described in
TupleList
-
isMarkedAsCorrect
public boolean isMarkedAsCorrect()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-