Interface IndexBasedConstraintConverter

  • All Known Implementing Classes:
    SimpleCartesianProductConstraintConverter
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface IndexBasedConstraintConverter
    Used by IndexBasedModelConverter to convert a list of Constraint to a list of TupleList.
    • Method Detail

      • convert

        java.util.List<de.rwth.swc.coffee4j.engine.TupleList> convert​(java.util.List<Constraint> constraints,
                                                                      java.util.List<Parameter> parameters)
        Converts all constraints to tuple lists by using the index based schema explained in ModelConverter. The constraints need to be converted in order.
        Parameters:
        constraints - all constraint which need to be converted. Must not be null but can be empty
        parameters - the parameters containing the values for the conversion. Must not be null. Can only be empty if constraints is empty too as otherwise parameters are constrained
        Returns:
        the converted constraints in the same order as the given constraints