Class AbstractIndexBasedConstraintConverter

    • Constructor Detail

      • AbstractIndexBasedConstraintConverter

        public AbstractIndexBasedConstraintConverter​(List<Parameter> parameters)
        Parameters:
        parameters - parameters containing the values for the conversion. Must not be null.
    • Method Detail

      • convertedConstraint

        protected abstract TupleList convertedConstraint​(Constraint constraint,
                                                         it.unimi.dsi.fastutil.objects.Object2IntMap<String> parameterIdMap,
                                                         it.unimi.dsi.fastutil.ints.Int2ObjectMap<Parameter> idToParameterMap,
                                                         int id)
        template method implemented by sub-classes to convert the given Constraint into a TupleList.
        Parameters:
        constraint - constraint to be converted.
        parameterIdMap - map from parameter name to Id.
        idToParameterMap - map from Id to Parameter.
        id - id to assign.
        Returns:
        converted constraint.