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 TupleListconvert(Constraint constraint, int lastId)Converts the constraint to aTupleListby using the index based schema explained inModelConverter.List<TupleList>convert(List<Constraint> constraints, int lastId)Converts all constraints toTupleLists by using the index based schema explained inModelConverter.
-
-
-
Method Detail
-
convert
List<TupleList> convert(List<Constraint> constraints, int lastId)
Converts all constraints toTupleLists by using the index based schema explained inModelConverter. The constraints need to be converted in order.- Parameters:
constraints- allConstraints which need to be converted. Must not benullbut 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 aTupleListby using the index based schema explained inModelConverter.- Parameters:
constraint-Constraintthat needs to be converted. Must not benull.lastId- last id that has been assigned.- Returns:
- the converted
Constraint.
-
-