Interface IndexBasedConstraintConverter
-
- All Known Implementing Classes:
AbstractIndexBasedConstraintConverter
,SimpleCartesianProductConstraintConverter
,TupleBasedConstraintConverter
public interface IndexBasedConstraintConverter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TupleList
convert(Constraint constraint, int lastId)
Converts the constraint to aTupleList
by using the index based schema explained inModelConverter
.List<TupleList>
convert(List<Constraint> constraints, int lastId)
Converts all constraints toTupleList
s by using the index based schema explained inModelConverter
.
-
-
-
Method Detail
-
convert
List<TupleList> convert(List<Constraint> constraints, int lastId)
Converts all constraints toTupleList
s by using the index based schema explained inModelConverter
. The constraints need to be converted in order.- Parameters:
constraints
- allConstraint
s which need to be converted. Must not benull
but can be emptylastId
- last id that has been assigned.- Returns:
- the converted constraints in the same order as the given constraints
-
convert
TupleList convert(Constraint constraint, int lastId)
Converts the constraint to aTupleList
by using the index based schema explained inModelConverter
.- Parameters:
constraint
-Constraint
that needs to be converted. Must not benull
.lastId
- last id that has been assigned.- Returns:
- the converted
Constraint
.
-
-