Package org.xcsp.parser.callbacks
Class CompetitionValidator
- java.lang.Object
-
- org.xcsp.parser.callbacks.CompetitionValidator
-
- All Implemented Interfaces:
XCallbacks,XCallbacks2
public class CompetitionValidator extends Object implements XCallbacks2
This class is used to test if XCSP3 instances are valid according to the scope of the current (2018) XCSP3 competition of constraint solvers.- Author:
- Christophe Lecoutre
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.xcsp.parser.callbacks.XCallbacks
XCallbacks.Implem, XCallbacks.XCallbacksParameters
-
-
Constructor Summary
Constructors Constructor Description CompetitionValidator(Boolean miniTrack, boolean exceptionsVisible, String name)Builds an object used for checking the validity of one (or several) XCSP3 instances with respect to the scope of the current competition.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeginSlide(XConstraints.XSlide s)Method called at the beginning of the process of loading the specified meta-constraint slide.voidbuildCtrAllDifferent(String id, XNode<XVariables.XVarInteger>[] trees)voidbuildCtrAllDifferent(String id, XVariables.XVarInteger[] list)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrAllDifferentExcept(String id, XVariables.XVarInteger[] list, int[] except)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrAllDifferentList(String id, XVariables.XVarInteger[][] lists)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrAllDifferentList(String id, XVariables.XVarInteger[][] lists, int[][] except)voidbuildCtrAllDifferentMatrix(String id, XVariables.XVarInteger[][] matrix)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrAllDifferentMatrix(String id, XVariables.XVarInteger[][] matrix, int[] except)voidbuildCtrAllEqual(String id, XNode<XVariables.XVarInteger>[] trees)voidbuildCtrAllEqual(String id, XVariables.XVarInteger[] list)Callback method for building a constraintallEqual.voidbuildCtrBinPacking(String id, XVariables.XVarInteger[] list, int[] sizes, int[] capacities, boolean loads)voidbuildCtrBinPacking(String id, XVariables.XVarInteger[] list, int[] sizes, Condition condition)voidbuildCtrBinPacking(String id, XVariables.XVarInteger[] list, int[] sizes, Condition[] conditions, int startIndex)voidbuildCtrBinPacking(String id, XVariables.XVarInteger[] list, int[] sizes, XVariables.XVarInteger[] capacities, boolean loads)voidbuildCtrCardinality(String id, XVariables.XVarInteger[] list, boolean closed, int[] values, int[] occurs)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCardinality(String id, XVariables.XVarInteger[] list, boolean closed, int[] values, int[] occursMin, int[] occursMax)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCardinality(String id, XVariables.XVarInteger[] list, boolean closed, int[] values, XVariables.XVarInteger[] occurs)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCardinality(String id, XVariables.XVarInteger[] list, boolean closed, XVariables.XVarInteger[] values, int[] occurs)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCardinality(String id, XVariables.XVarInteger[] list, boolean closed, XVariables.XVarInteger[] values, int[] occursMin, int[] occursMax)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCardinality(String id, XVariables.XVarInteger[] list, boolean closed, XVariables.XVarInteger[] values, XVariables.XVarInteger[] occurs)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrChannel(String id, XVariables.XVarInteger[] list, int startIndex)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrChannel(String id, XVariables.XVarInteger[] list, int startIndex, XVariables.XVarInteger value)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrChannel(String id, XVariables.XVarInteger[] list1, int startIndex1, XVariables.XVarInteger[] list2, int startIndex2)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCircuit(String id, XVariables.XVarInteger[] list, int startIndex)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCircuit(String id, XVariables.XVarInteger[] list, int startIndex, int size)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCircuit(String id, XVariables.XVarInteger[] list, int startIndex, XVariables.XVarInteger size)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCount(String id, XNode<XVariables.XVarInteger>[] trees, int[] values, Condition condition)voidbuildCtrCount(String id, XVariables.XVarInteger[] list, int[] values, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCount(String id, XVariables.XVarInteger[] list, XVariables.XVarInteger[] values, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCumulative(String id, XVariables.XVarInteger[] origins, int[] lengths, int[] heights, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCumulative(String id, XVariables.XVarInteger[] origins, int[] lengths, XVariables.XVarInteger[] ends, int[] heights, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCumulative(String id, XVariables.XVarInteger[] origins, int[] lengths, XVariables.XVarInteger[] heights, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCumulative(String id, XVariables.XVarInteger[] origins, int[] lengths, XVariables.XVarInteger[] ends, XVariables.XVarInteger[] heights, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCumulative(String id, XVariables.XVarInteger[] origins, XVariables.XVarInteger[] lengths, int[] heights, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCumulative(String id, XVariables.XVarInteger[] origins, XVariables.XVarInteger[] lengths, XVariables.XVarInteger[] ends, int[] heights, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCumulative(String id, XVariables.XVarInteger[] origins, XVariables.XVarInteger[] lengths, XVariables.XVarInteger[] heights, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCumulative(String id, XVariables.XVarInteger[] origins, XVariables.XVarInteger[] lengths, XVariables.XVarInteger[] ends, XVariables.XVarInteger[] heights, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrElement(String id, int[][] matrix, int startRowIndex, XVariables.XVarInteger rowIndex, int startColIndex, XVariables.XVarInteger colIndex, Condition condition)voidbuildCtrElement(String id, int[] list, int startIndex, XVariables.XVarInteger index, Types.TypeRank rank, Condition condition)voidbuildCtrElement(String id, XVariables.XVarInteger[][] matrix, int startRowIndex, XVariables.XVarInteger rowIndex, int startColIndex, XVariables.XVarInteger colIndex, Condition condition)voidbuildCtrElement(String id, XVariables.XVarInteger[] list, int startIndex, XVariables.XVarInteger index, Types.TypeRank rank, Condition condition)voidbuildCtrElement(String id, XVariables.XVarInteger[] list, Condition condition)voidbuildCtrExtension(String id, XVariables.XVarInteger[] list, int[][] tuples, boolean positive, Set<Types.TypeFlag> flags)Callback method for building a (non-unary) extensional constraint.voidbuildCtrExtension(String id, XVariables.XVarInteger[] list, AbstractTuple[] tuples, boolean positive, Set<Types.TypeFlag> flags)voidbuildCtrExtension(String id, XVariables.XVarInteger x, int[] values, boolean positive, Set<Types.TypeFlag> flags)Callback method for building a unary extensional constraint.voidbuildCtrFlow(String id, XVariables.XVarInteger[] list, int[] balance, int[][] arcs)voidbuildCtrFlow(String id, XVariables.XVarInteger[] list, int[] balance, int[][] arcs, int[] weights, Condition condition)voidbuildCtrInstantiation(String id, XVariables.XVarInteger[] list, int[] values)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrIntension(String id, XVariables.XVarInteger[] scope, XNodeParent<XVariables.XVarInteger> tree)Callback method for building a constraintintensionfrom the specified syntactic tree.voidbuildCtrKnapsack(String id, XVariables.XVarInteger[] list, int[] weights, Condition wcondition, int[] profits, Condition pcondition)voidbuildCtrLex(String id, XVariables.XVarInteger[][] lists, Types.TypeOperatorRel operator)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrLex(String id, XVariables.XVarInteger[] list, int[] limit, Types.TypeOperatorRel operator)voidbuildCtrLexMatrix(String id, XVariables.XVarInteger[][] matrix, Types.TypeOperatorRel operator)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrMaximum(String id, XNode<XVariables.XVarInteger>[] trees, Condition condition)voidbuildCtrMaximum(String id, XVariables.XVarInteger[] list, int startIndex, XVariables.XVarInteger index, Types.TypeRank rank, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrMaximum(String id, XVariables.XVarInteger[] list, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrMaximumArg(String id, XNode<XVariables.XVarInteger>[] trees, Types.TypeRank rank, Condition condition)voidbuildCtrMaximumArg(String id, XVariables.XVarInteger[] list, Types.TypeRank rank, Condition condition)voidbuildCtrMDD(String id, XVariables.XVarInteger[] list, Transition[] transitions)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrMinimum(String id, XNode<XVariables.XVarInteger>[] trees, Condition condition)voidbuildCtrMinimum(String id, XVariables.XVarInteger[] list, int startIndex, XVariables.XVarInteger index, Types.TypeRank rank, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrMinimum(String id, XVariables.XVarInteger[] list, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrMinimumArg(String id, XNode<XVariables.XVarInteger>[] trees, Types.TypeRank rank, Condition condition)voidbuildCtrMinimumArg(String id, XVariables.XVarInteger[] list, Types.TypeRank rank, Condition condition)voidbuildCtrNoOverlap(String id, XVariables.XVarInteger[][] origins, int[][] lengths, boolean zeroIgnored)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrNoOverlap(String id, XVariables.XVarInteger[][] origins, XVariables.XVarInteger[][] lengths, boolean zeroIgnored)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrNoOverlap(String id, XVariables.XVarInteger[] origins, int[] lengths, boolean zeroIgnored)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrNoOverlap(String id, XVariables.XVarInteger[] origins, XVariables.XVarInteger[] lengths, boolean zeroIgnored)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrNValues(String id, XNode<XVariables.XVarInteger>[] trees, Condition condition)voidbuildCtrNValues(String id, XVariables.XVarInteger[] list, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrNValuesExcept(String id, XVariables.XVarInteger[] list, int[] except, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrOrdered(String id, XVariables.XVarInteger[] list, int[] lengths, Types.TypeOperatorRel operator)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrOrdered(String id, XVariables.XVarInteger[] list, Types.TypeOperatorRel operator)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrOrdered(String id, XVariables.XVarInteger[] list, XVariables.XVarInteger[] lengths, Types.TypeOperatorRel operator)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrPrecedence(String id, XVariables.XVarInteger[] list)voidbuildCtrPrecedence(String id, XVariables.XVarInteger[] list, int[] values, boolean covered)voidbuildCtrRegular(String id, XVariables.XVarInteger[] list, Transition[] transitions, String startState, String[] finalStates)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrSum(String id, XNode<XVariables.XVarInteger>[] trees, int[] coeffs, Condition condition)voidbuildCtrSum(String id, XNode<XVariables.XVarInteger>[] trees, Condition condition)voidbuildCtrSum(String id, XNode<XVariables.XVarInteger>[] trees, XVariables.XVarInteger[] coeffs, Condition condition)voidbuildCtrSum(String id, XVariables.XVarInteger[] list, int[] coeffs, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrSum(String id, XVariables.XVarInteger[] list, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrSum(String id, XVariables.XVarInteger[] list, XVariables.XVarInteger[] coeffs, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildObjToMaximize(String id, XNodeParent<XVariables.XVarInteger> tree)voidbuildObjToMaximize(String id, Types.TypeObjective type, XNode<XVariables.XVarInteger>[] trees)voidbuildObjToMaximize(String id, Types.TypeObjective type, XNode<XVariables.XVarInteger>[] trees, int[] coeffs)voidbuildObjToMaximize(String id, Types.TypeObjective type, XVariables.XVarInteger[] list)voidbuildObjToMaximize(String id, Types.TypeObjective type, XVariables.XVarInteger[] list, int[] coeffs)voidbuildObjToMaximize(String id, XVariables.XVarInteger x)voidbuildObjToMinimize(String id, XNodeParent<XVariables.XVarInteger> tree)voidbuildObjToMinimize(String id, Types.TypeObjective type, XNode<XVariables.XVarInteger>[] trees)voidbuildObjToMinimize(String id, Types.TypeObjective type, XNode<XVariables.XVarInteger>[] trees, int[] coeffs)voidbuildObjToMinimize(String id, Types.TypeObjective type, XVariables.XVarInteger[] list)voidbuildObjToMinimize(String id, Types.TypeObjective type, XVariables.XVarInteger[] list, int[] coeffs)voidbuildObjToMinimize(String id, XVariables.XVarInteger x)Methods to be implemented for managing objectivesvoidbuildVarInteger(XVariables.XVarInteger x, int[] values)Callback method for building in the solver an integer variable whose domain is given by the specified array.voidbuildVarInteger(XVariables.XVarInteger x, int minValue, int maxValue)Callback method for building in the solver an integer variable whose domain contains all integer values between the two specified bounds.XCallbacks.Implemimplem()Returns the object that implements necessary data structures during the loading process.voidloadVariables(XParser parser)Loads all elements that are contained in the element <variables> of the XCSP3 instance, which have been parsed by the specified parser object.static voidmain(String[] args)ObjectunimplementedCase(Object... objects)Methods to be implemented on integer variables/constraints-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.xcsp.parser.callbacks.XCallbacks
buildCtrFalse, buildCtrTrue, loadAnn, loadAnnotations, loadArray, loadBlock, loadConstraints, loadConstraints, loadCtr, loadCtrs, loadDocument, loadGroup, loadInstance, loadInstance, loadLogic, loadObj, loadObjectives, loadSlide, loadVar, repost
-
Methods inherited from interface org.xcsp.parser.callbacks.XCallbacks2
beginAnnotations, beginArray, beginBlock, beginConstraints, beginGroup, beginInstance, beginLogic, beginObjectives, beginVariables, buildAnnotationDecision, buildAnnotationValHeuristicStatic, buildCtrAllDifferent, buildCtrAmong, buildCtrAmong, buildCtrAtLeast, buildCtrAtMost, buildCtrClause, buildCtrExactly, buildCtrExactly, buildCtrExtension, buildCtrExtension, buildCtrIntension, buildCtrLogic, buildCtrLogic, buildCtrLogic, buildCtrLogic, buildCtrNoOverlap, buildCtrNotAllEqual, buildCtrPrimitive, buildCtrPrimitive, buildCtrPrimitive, buildCtrPrimitive, buildCtrPrimitive, buildCtrPrimitive, buildCtrPrimitive, buildCtrPrimitive, buildCtrStretch, buildCtrStretch, buildVarSymbolic, endAnnotations, endArray, endBlock, endConstraints, endGroup, endInstance, endLogic, endObjectives, endSlide, endVariables
-
-
-
-
Constructor Detail
-
CompetitionValidator
public CompetitionValidator(Boolean miniTrack, boolean exceptionsVisible, String name) throws Exception
Builds an object used for checking the validity of one (or several) XCSP3 instances with respect to the scope of the current competition.- Parameters:
miniTrack- Indicates how the tests are performed: iftrue, only for the mini-track, iffalse, only for the main track, ifnullfor both tracks.name- the name of a file or directory- Throws:
Exception- exception thrown if a problem is encountered
-
-
Method Detail
-
implem
public XCallbacks.Implem implem()
Description copied from interface:XCallbacksReturns the object that implements necessary data structures during the loading process. In your class implementing XCallbacks, you should simply write something like:Implem implem = new Implem(this); @Override public Implem implem() { return implem; }- Specified by:
implemin interfaceXCallbacks- Returns:
- the object that implements some data structures used during the loading process
-
unimplementedCase
public Object unimplementedCase(Object... objects)
Description copied from interface:XCallbacks2Methods to be implemented on integer variables/constraints- Specified by:
unimplementedCasein interfaceXCallbacks- Specified by:
unimplementedCasein interfaceXCallbacks2- Parameters:
objects- objects to be displayed (with toString())- Returns:
- a fake object because the exception will quit first.
-
buildVarInteger
public void buildVarInteger(XVariables.XVarInteger x, int minValue, int maxValue)
Description copied from interface:XCallbacksCallback method for building in the solver an integer variable whose domain contains all integer values between the two specified bounds.- Specified by:
buildVarIntegerin interfaceXCallbacks- Specified by:
buildVarIntegerin interfaceXCallbacks2- Parameters:
x- an integer variable built by the parserminValue- the minimum value of the domain of xmaxValue- the maximum value of the domain of x
-
buildVarInteger
public void buildVarInteger(XVariables.XVarInteger x, int[] values)
Description copied from interface:XCallbacksCallback method for building in the solver an integer variable whose domain is given by the specified array.- Specified by:
buildVarIntegerin interfaceXCallbacks- Specified by:
buildVarIntegerin interfaceXCallbacks2- Parameters:
x- an integer variable built by the parservalues- the values in the domain of x
-
loadVariables
public void loadVariables(XParser parser)
Description copied from interface:XCallbacksLoads all elements that are contained in the element <variables> of the XCSP3 instance, which have been parsed by the specified parser object. Except for some advanced uses, this method should not be overridden.- Specified by:
loadVariablesin interfaceXCallbacks- Parameters:
parser- the object used to parse the element
-
buildCtrIntension
public void buildCtrIntension(String id, XVariables.XVarInteger[] scope, XNodeParent<XVariables.XVarInteger> tree)
Description copied from interface:XCallbacksCallback method for building a constraintintensionfrom the specified syntactic tree. Variables of the specified array of variables are exactly those that are present in the tree.- Specified by:
buildCtrIntensionin interfaceXCallbacks- Specified by:
buildCtrIntensionin interfaceXCallbacks2- Parameters:
id- the id of the constraintscope- the list of integer variables of the constrainttree- the root of a syntactic tree representing the predicate associated with the constraint
-
buildCtrExtension
public void buildCtrExtension(String id, XVariables.XVarInteger x, int[] values, boolean positive, Set<Types.TypeFlag> flags)
Description copied from interface:XCallbacksCallback method for building a unary extensional constraint. Values are supports (accepted by the constraint) iff the specified Boolean is true, otherwise they are conflicts (not accepted by the constraint). The flag STARRED_TUPLES cannot appear in the specified set (because this is a unary constraint). The flag UNCLEAN_TUPLES, if present, indicates that all specified values do not necessarily belong to the (initial) domain of the specified variable. More information in the specifications (Chapter 4). Quick information available at XCSP3 website (Tab Specifications).- Specified by:
buildCtrExtensionin interfaceXCallbacks- Specified by:
buildCtrExtensionin interfaceXCallbacks2- Parameters:
id- the id of the constraintx- an integer variablevalues- supports or conflictspositive- values are supports iff this value is trueflags- set of flags giving information about the values
-
buildCtrExtension
public void buildCtrExtension(String id, XVariables.XVarInteger[] list, int[][] tuples, boolean positive, Set<Types.TypeFlag> flags)
Description copied from interface:XCallbacksCallback method for building a (non-unary) extensional constraint. Tuples are supports (accepted by the constraint) iff the specified Boolean is true, otherwise they are conflicts (not accepted by the constraint). The flag STARRED_TUPLES indicates if the symbol * (denoted by Constants.STAR_INT, whose value is Integer.MAX_VALUE - 1) is present in some tuple(s). The flag UNCLEAN_TUPLES, if present, indicates that all specified tuples do not necessarily belong to the (initial) domains of the specified variables. More information in the specifications (Chapter 4). Quick information available at XCSP3 website (Tab Specifications).- Specified by:
buildCtrExtensionin interfaceXCallbacks- Specified by:
buildCtrExtensionin interfaceXCallbacks2- Parameters:
id- the id of the constraintlist- the scope of the constrainttuples- supports or conflictspositive- tuples are supports iff this value is trueflags- set of flags giving information about the tuples
-
buildCtrExtension
public void buildCtrExtension(String id, XVariables.XVarInteger[] list, AbstractTuple[] tuples, boolean positive, Set<Types.TypeFlag> flags)
- Specified by:
buildCtrExtensionin interfaceXCallbacks- Specified by:
buildCtrExtensionin interfaceXCallbacks2
-
buildCtrRegular
public void buildCtrRegular(String id, XVariables.XVarInteger[] list, Transition[] transitions, String startState, String[] finalStates)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrRegularin interfaceXCallbacks- Specified by:
buildCtrRegularin interfaceXCallbacks2
-
buildCtrMDD
public void buildCtrMDD(String id, XVariables.XVarInteger[] list, Transition[] transitions)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrMDDin interfaceXCallbacks- Specified by:
buildCtrMDDin interfaceXCallbacks2
-
buildCtrAllDifferent
public void buildCtrAllDifferent(String id, XVariables.XVarInteger[] list)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrAllDifferentin interfaceXCallbacks- Specified by:
buildCtrAllDifferentin interfaceXCallbacks2
-
buildCtrAllDifferentExcept
public void buildCtrAllDifferentExcept(String id, XVariables.XVarInteger[] list, int[] except)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrAllDifferentExceptin interfaceXCallbacks- Specified by:
buildCtrAllDifferentExceptin interfaceXCallbacks2
-
buildCtrAllDifferentList
public void buildCtrAllDifferentList(String id, XVariables.XVarInteger[][] lists)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrAllDifferentListin interfaceXCallbacks- Specified by:
buildCtrAllDifferentListin interfaceXCallbacks2
-
buildCtrAllDifferentList
public void buildCtrAllDifferentList(String id, XVariables.XVarInteger[][] lists, int[][] except)
- Specified by:
buildCtrAllDifferentListin interfaceXCallbacks- Specified by:
buildCtrAllDifferentListin interfaceXCallbacks2
-
buildCtrAllDifferentMatrix
public void buildCtrAllDifferentMatrix(String id, XVariables.XVarInteger[][] matrix)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrAllDifferentMatrixin interfaceXCallbacks- Specified by:
buildCtrAllDifferentMatrixin interfaceXCallbacks2
-
buildCtrAllDifferentMatrix
public void buildCtrAllDifferentMatrix(String id, XVariables.XVarInteger[][] matrix, int[] except)
- Specified by:
buildCtrAllDifferentMatrixin interfaceXCallbacks- Specified by:
buildCtrAllDifferentMatrixin interfaceXCallbacks2
-
buildCtrAllDifferent
public void buildCtrAllDifferent(String id, XNode<XVariables.XVarInteger>[] trees)
- Specified by:
buildCtrAllDifferentin interfaceXCallbacks- Specified by:
buildCtrAllDifferentin interfaceXCallbacks2
-
buildCtrAllEqual
public void buildCtrAllEqual(String id, XVariables.XVarInteger[] list)
Description copied from interface:XCallbacksCallback method for building a constraintallEqual.- Specified by:
buildCtrAllEqualin interfaceXCallbacks- Specified by:
buildCtrAllEqualin interfaceXCallbacks2- Parameters:
id- the id of the constraintlist- the list of variables of the constraint
-
buildCtrAllEqual
public void buildCtrAllEqual(String id, XNode<XVariables.XVarInteger>[] trees)
- Specified by:
buildCtrAllEqualin interfaceXCallbacks- Specified by:
buildCtrAllEqualin interfaceXCallbacks2
-
buildCtrOrdered
public void buildCtrOrdered(String id, XVariables.XVarInteger[] list, Types.TypeOperatorRel operator)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrOrderedin interfaceXCallbacks- Specified by:
buildCtrOrderedin interfaceXCallbacks2
-
buildCtrOrdered
public void buildCtrOrdered(String id, XVariables.XVarInteger[] list, int[] lengths, Types.TypeOperatorRel operator)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrOrderedin interfaceXCallbacks- Specified by:
buildCtrOrderedin interfaceXCallbacks2
-
buildCtrOrdered
public void buildCtrOrdered(String id, XVariables.XVarInteger[] list, XVariables.XVarInteger[] lengths, Types.TypeOperatorRel operator)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrOrderedin interfaceXCallbacks- Specified by:
buildCtrOrderedin interfaceXCallbacks2
-
buildCtrLex
public void buildCtrLex(String id, XVariables.XVarInteger[] list, int[] limit, Types.TypeOperatorRel operator)
- Specified by:
buildCtrLexin interfaceXCallbacks- Specified by:
buildCtrLexin interfaceXCallbacks2
-
buildCtrLex
public void buildCtrLex(String id, XVariables.XVarInteger[][] lists, Types.TypeOperatorRel operator)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrLexin interfaceXCallbacks- Specified by:
buildCtrLexin interfaceXCallbacks2
-
buildCtrLexMatrix
public void buildCtrLexMatrix(String id, XVariables.XVarInteger[][] matrix, Types.TypeOperatorRel operator)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrLexMatrixin interfaceXCallbacks- Specified by:
buildCtrLexMatrixin interfaceXCallbacks2
-
buildCtrPrecedence
public void buildCtrPrecedence(String id, XVariables.XVarInteger[] list)
- Specified by:
buildCtrPrecedencein interfaceXCallbacks- Specified by:
buildCtrPrecedencein interfaceXCallbacks2
-
buildCtrPrecedence
public void buildCtrPrecedence(String id, XVariables.XVarInteger[] list, int[] values, boolean covered)
- Specified by:
buildCtrPrecedencein interfaceXCallbacks- Specified by:
buildCtrPrecedencein interfaceXCallbacks2
-
buildCtrSum
public void buildCtrSum(String id, XVariables.XVarInteger[] list, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrSumin interfaceXCallbacks- Specified by:
buildCtrSumin interfaceXCallbacks2
-
buildCtrSum
public void buildCtrSum(String id, XVariables.XVarInteger[] list, int[] coeffs, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrSumin interfaceXCallbacks- Specified by:
buildCtrSumin interfaceXCallbacks2
-
buildCtrSum
public void buildCtrSum(String id, XVariables.XVarInteger[] list, XVariables.XVarInteger[] coeffs, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrSumin interfaceXCallbacks- Specified by:
buildCtrSumin interfaceXCallbacks2
-
buildCtrSum
public void buildCtrSum(String id, XNode<XVariables.XVarInteger>[] trees, Condition condition)
- Specified by:
buildCtrSumin interfaceXCallbacks- Specified by:
buildCtrSumin interfaceXCallbacks2
-
buildCtrSum
public void buildCtrSum(String id, XNode<XVariables.XVarInteger>[] trees, int[] coeffs, Condition condition)
- Specified by:
buildCtrSumin interfaceXCallbacks- Specified by:
buildCtrSumin interfaceXCallbacks2
-
buildCtrSum
public void buildCtrSum(String id, XNode<XVariables.XVarInteger>[] trees, XVariables.XVarInteger[] coeffs, Condition condition)
- Specified by:
buildCtrSumin interfaceXCallbacks- Specified by:
buildCtrSumin interfaceXCallbacks2
-
buildCtrCount
public void buildCtrCount(String id, XVariables.XVarInteger[] list, int[] values, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCountin interfaceXCallbacks- Specified by:
buildCtrCountin interfaceXCallbacks2
-
buildCtrCount
public void buildCtrCount(String id, XNode<XVariables.XVarInteger>[] trees, int[] values, Condition condition)
- Specified by:
buildCtrCountin interfaceXCallbacks- Specified by:
buildCtrCountin interfaceXCallbacks2
-
buildCtrCount
public void buildCtrCount(String id, XVariables.XVarInteger[] list, XVariables.XVarInteger[] values, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCountin interfaceXCallbacks- Specified by:
buildCtrCountin interfaceXCallbacks2
-
buildCtrNValues
public void buildCtrNValues(String id, XVariables.XVarInteger[] list, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrNValuesin interfaceXCallbacks- Specified by:
buildCtrNValuesin interfaceXCallbacks2
-
buildCtrNValuesExcept
public void buildCtrNValuesExcept(String id, XVariables.XVarInteger[] list, int[] except, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrNValuesExceptin interfaceXCallbacks- Specified by:
buildCtrNValuesExceptin interfaceXCallbacks2
-
buildCtrNValues
public void buildCtrNValues(String id, XNode<XVariables.XVarInteger>[] trees, Condition condition)
- Specified by:
buildCtrNValuesin interfaceXCallbacks- Specified by:
buildCtrNValuesin interfaceXCallbacks2
-
buildCtrCardinality
public void buildCtrCardinality(String id, XVariables.XVarInteger[] list, boolean closed, int[] values, XVariables.XVarInteger[] occurs)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCardinalityin interfaceXCallbacks- Specified by:
buildCtrCardinalityin interfaceXCallbacks2
-
buildCtrCardinality
public void buildCtrCardinality(String id, XVariables.XVarInteger[] list, boolean closed, int[] values, int[] occurs)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCardinalityin interfaceXCallbacks- Specified by:
buildCtrCardinalityin interfaceXCallbacks2
-
buildCtrCardinality
public void buildCtrCardinality(String id, XVariables.XVarInteger[] list, boolean closed, int[] values, int[] occursMin, int[] occursMax)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCardinalityin interfaceXCallbacks- Specified by:
buildCtrCardinalityin interfaceXCallbacks2
-
buildCtrCardinality
public void buildCtrCardinality(String id, XVariables.XVarInteger[] list, boolean closed, XVariables.XVarInteger[] values, XVariables.XVarInteger[] occurs)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCardinalityin interfaceXCallbacks- Specified by:
buildCtrCardinalityin interfaceXCallbacks2
-
buildCtrCardinality
public void buildCtrCardinality(String id, XVariables.XVarInteger[] list, boolean closed, XVariables.XVarInteger[] values, int[] occurs)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCardinalityin interfaceXCallbacks- Specified by:
buildCtrCardinalityin interfaceXCallbacks2
-
buildCtrCardinality
public void buildCtrCardinality(String id, XVariables.XVarInteger[] list, boolean closed, XVariables.XVarInteger[] values, int[] occursMin, int[] occursMax)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCardinalityin interfaceXCallbacks- Specified by:
buildCtrCardinalityin interfaceXCallbacks2
-
buildCtrMaximum
public void buildCtrMaximum(String id, XVariables.XVarInteger[] list, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrMaximumin interfaceXCallbacks- Specified by:
buildCtrMaximumin interfaceXCallbacks2
-
buildCtrMaximum
public void buildCtrMaximum(String id, XVariables.XVarInteger[] list, int startIndex, XVariables.XVarInteger index, Types.TypeRank rank, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrMaximumin interfaceXCallbacks- Specified by:
buildCtrMaximumin interfaceXCallbacks2
-
buildCtrMaximum
public void buildCtrMaximum(String id, XNode<XVariables.XVarInteger>[] trees, Condition condition)
- Specified by:
buildCtrMaximumin interfaceXCallbacks- Specified by:
buildCtrMaximumin interfaceXCallbacks2
-
buildCtrMinimum
public void buildCtrMinimum(String id, XVariables.XVarInteger[] list, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrMinimumin interfaceXCallbacks- Specified by:
buildCtrMinimumin interfaceXCallbacks2
-
buildCtrMinimum
public void buildCtrMinimum(String id, XVariables.XVarInteger[] list, int startIndex, XVariables.XVarInteger index, Types.TypeRank rank, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrMinimumin interfaceXCallbacks- Specified by:
buildCtrMinimumin interfaceXCallbacks2
-
buildCtrMinimum
public void buildCtrMinimum(String id, XNode<XVariables.XVarInteger>[] trees, Condition condition)
- Specified by:
buildCtrMinimumin interfaceXCallbacks- Specified by:
buildCtrMinimumin interfaceXCallbacks2
-
buildCtrMaximumArg
public void buildCtrMaximumArg(String id, XVariables.XVarInteger[] list, Types.TypeRank rank, Condition condition)
- Specified by:
buildCtrMaximumArgin interfaceXCallbacks- Specified by:
buildCtrMaximumArgin interfaceXCallbacks2
-
buildCtrMaximumArg
public void buildCtrMaximumArg(String id, XNode<XVariables.XVarInteger>[] trees, Types.TypeRank rank, Condition condition)
- Specified by:
buildCtrMaximumArgin interfaceXCallbacks- Specified by:
buildCtrMaximumArgin interfaceXCallbacks2
-
buildCtrMinimumArg
public void buildCtrMinimumArg(String id, XVariables.XVarInteger[] list, Types.TypeRank rank, Condition condition)
- Specified by:
buildCtrMinimumArgin interfaceXCallbacks- Specified by:
buildCtrMinimumArgin interfaceXCallbacks2
-
buildCtrMinimumArg
public void buildCtrMinimumArg(String id, XNode<XVariables.XVarInteger>[] trees, Types.TypeRank rank, Condition condition)
- Specified by:
buildCtrMinimumArgin interfaceXCallbacks- Specified by:
buildCtrMinimumArgin interfaceXCallbacks2
-
buildCtrElement
public void buildCtrElement(String id, XVariables.XVarInteger[] list, Condition condition)
- Specified by:
buildCtrElementin interfaceXCallbacks- Specified by:
buildCtrElementin interfaceXCallbacks2
-
buildCtrElement
public void buildCtrElement(String id, XVariables.XVarInteger[] list, int startIndex, XVariables.XVarInteger index, Types.TypeRank rank, Condition condition)
- Specified by:
buildCtrElementin interfaceXCallbacks- Specified by:
buildCtrElementin interfaceXCallbacks2
-
buildCtrElement
public void buildCtrElement(String id, int[] list, int startIndex, XVariables.XVarInteger index, Types.TypeRank rank, Condition condition)
- Specified by:
buildCtrElementin interfaceXCallbacks- Specified by:
buildCtrElementin interfaceXCallbacks2
-
buildCtrElement
public void buildCtrElement(String id, int[][] matrix, int startRowIndex, XVariables.XVarInteger rowIndex, int startColIndex, XVariables.XVarInteger colIndex, Condition condition)
- Specified by:
buildCtrElementin interfaceXCallbacks- Specified by:
buildCtrElementin interfaceXCallbacks2
-
buildCtrElement
public void buildCtrElement(String id, XVariables.XVarInteger[][] matrix, int startRowIndex, XVariables.XVarInteger rowIndex, int startColIndex, XVariables.XVarInteger colIndex, Condition condition)
- Specified by:
buildCtrElementin interfaceXCallbacks- Specified by:
buildCtrElementin interfaceXCallbacks2
-
buildCtrChannel
public void buildCtrChannel(String id, XVariables.XVarInteger[] list, int startIndex)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrChannelin interfaceXCallbacks- Specified by:
buildCtrChannelin interfaceXCallbacks2
-
buildCtrChannel
public void buildCtrChannel(String id, XVariables.XVarInteger[] list1, int startIndex1, XVariables.XVarInteger[] list2, int startIndex2)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrChannelin interfaceXCallbacks- Specified by:
buildCtrChannelin interfaceXCallbacks2
-
buildCtrChannel
public void buildCtrChannel(String id, XVariables.XVarInteger[] list, int startIndex, XVariables.XVarInteger value)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrChannelin interfaceXCallbacks- Specified by:
buildCtrChannelin interfaceXCallbacks2
-
buildCtrNoOverlap
public void buildCtrNoOverlap(String id, XVariables.XVarInteger[] origins, int[] lengths, boolean zeroIgnored)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrNoOverlapin interfaceXCallbacks- Specified by:
buildCtrNoOverlapin interfaceXCallbacks2
-
buildCtrNoOverlap
public void buildCtrNoOverlap(String id, XVariables.XVarInteger[] origins, XVariables.XVarInteger[] lengths, boolean zeroIgnored)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrNoOverlapin interfaceXCallbacks- Specified by:
buildCtrNoOverlapin interfaceXCallbacks2
-
buildCtrNoOverlap
public void buildCtrNoOverlap(String id, XVariables.XVarInteger[][] origins, int[][] lengths, boolean zeroIgnored)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrNoOverlapin interfaceXCallbacks- Specified by:
buildCtrNoOverlapin interfaceXCallbacks2
-
buildCtrNoOverlap
public void buildCtrNoOverlap(String id, XVariables.XVarInteger[][] origins, XVariables.XVarInteger[][] lengths, boolean zeroIgnored)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrNoOverlapin interfaceXCallbacks- Specified by:
buildCtrNoOverlapin interfaceXCallbacks2
-
buildCtrCumulative
public void buildCtrCumulative(String id, XVariables.XVarInteger[] origins, int[] lengths, int[] heights, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCumulativein interfaceXCallbacks- Specified by:
buildCtrCumulativein interfaceXCallbacks2
-
buildCtrCumulative
public void buildCtrCumulative(String id, XVariables.XVarInteger[] origins, int[] lengths, XVariables.XVarInteger[] heights, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCumulativein interfaceXCallbacks- Specified by:
buildCtrCumulativein interfaceXCallbacks2
-
buildCtrCumulative
public void buildCtrCumulative(String id, XVariables.XVarInteger[] origins, XVariables.XVarInteger[] lengths, int[] heights, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCumulativein interfaceXCallbacks- Specified by:
buildCtrCumulativein interfaceXCallbacks2
-
buildCtrCumulative
public void buildCtrCumulative(String id, XVariables.XVarInteger[] origins, XVariables.XVarInteger[] lengths, XVariables.XVarInteger[] heights, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCumulativein interfaceXCallbacks- Specified by:
buildCtrCumulativein interfaceXCallbacks2
-
buildCtrCumulative
public void buildCtrCumulative(String id, XVariables.XVarInteger[] origins, int[] lengths, XVariables.XVarInteger[] ends, int[] heights, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCumulativein interfaceXCallbacks- Specified by:
buildCtrCumulativein interfaceXCallbacks2
-
buildCtrCumulative
public void buildCtrCumulative(String id, XVariables.XVarInteger[] origins, int[] lengths, XVariables.XVarInteger[] ends, XVariables.XVarInteger[] heights, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCumulativein interfaceXCallbacks- Specified by:
buildCtrCumulativein interfaceXCallbacks2
-
buildCtrCumulative
public void buildCtrCumulative(String id, XVariables.XVarInteger[] origins, XVariables.XVarInteger[] lengths, XVariables.XVarInteger[] ends, int[] heights, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCumulativein interfaceXCallbacks- Specified by:
buildCtrCumulativein interfaceXCallbacks2
-
buildCtrCumulative
public void buildCtrCumulative(String id, XVariables.XVarInteger[] origins, XVariables.XVarInteger[] lengths, XVariables.XVarInteger[] ends, XVariables.XVarInteger[] heights, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCumulativein interfaceXCallbacks- Specified by:
buildCtrCumulativein interfaceXCallbacks2
-
buildCtrBinPacking
public void buildCtrBinPacking(String id, XVariables.XVarInteger[] list, int[] sizes, Condition condition)
- Specified by:
buildCtrBinPackingin interfaceXCallbacks- Specified by:
buildCtrBinPackingin interfaceXCallbacks2
-
buildCtrBinPacking
public void buildCtrBinPacking(String id, XVariables.XVarInteger[] list, int[] sizes, int[] capacities, boolean loads)
- Specified by:
buildCtrBinPackingin interfaceXCallbacks- Specified by:
buildCtrBinPackingin interfaceXCallbacks2
-
buildCtrBinPacking
public void buildCtrBinPacking(String id, XVariables.XVarInteger[] list, int[] sizes, XVariables.XVarInteger[] capacities, boolean loads)
- Specified by:
buildCtrBinPackingin interfaceXCallbacks- Specified by:
buildCtrBinPackingin interfaceXCallbacks2
-
buildCtrBinPacking
public void buildCtrBinPacking(String id, XVariables.XVarInteger[] list, int[] sizes, Condition[] conditions, int startIndex)
- Specified by:
buildCtrBinPackingin interfaceXCallbacks- Specified by:
buildCtrBinPackingin interfaceXCallbacks2
-
buildCtrKnapsack
public void buildCtrKnapsack(String id, XVariables.XVarInteger[] list, int[] weights, Condition wcondition, int[] profits, Condition pcondition)
- Specified by:
buildCtrKnapsackin interfaceXCallbacks- Specified by:
buildCtrKnapsackin interfaceXCallbacks2
-
buildCtrFlow
public void buildCtrFlow(String id, XVariables.XVarInteger[] list, int[] balance, int[][] arcs)
- Specified by:
buildCtrFlowin interfaceXCallbacks- Specified by:
buildCtrFlowin interfaceXCallbacks2
-
buildCtrFlow
public void buildCtrFlow(String id, XVariables.XVarInteger[] list, int[] balance, int[][] arcs, int[] weights, Condition condition)
- Specified by:
buildCtrFlowin interfaceXCallbacks- Specified by:
buildCtrFlowin interfaceXCallbacks2
-
buildCtrInstantiation
public void buildCtrInstantiation(String id, XVariables.XVarInteger[] list, int[] values)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrInstantiationin interfaceXCallbacks- Specified by:
buildCtrInstantiationin interfaceXCallbacks2
-
buildCtrCircuit
public void buildCtrCircuit(String id, XVariables.XVarInteger[] list, int startIndex)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCircuitin interfaceXCallbacks- Specified by:
buildCtrCircuitin interfaceXCallbacks2
-
buildCtrCircuit
public void buildCtrCircuit(String id, XVariables.XVarInteger[] list, int startIndex, int size)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCircuitin interfaceXCallbacks- Specified by:
buildCtrCircuitin interfaceXCallbacks2
-
buildCtrCircuit
public void buildCtrCircuit(String id, XVariables.XVarInteger[] list, int startIndex, XVariables.XVarInteger size)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCircuitin interfaceXCallbacks- Specified by:
buildCtrCircuitin interfaceXCallbacks2
-
beginSlide
public void beginSlide(XConstraints.XSlide s)
Description copied from interface:XCallbacksMethod called at the beginning of the process of loading the specified meta-constraint slide. Implement (or redefine) this method (if you implement XCallbacks2) in case you want some special operation to be executed (for example, for debugging).- Specified by:
beginSlidein interfaceXCallbacks- Specified by:
beginSlidein interfaceXCallbacks2- Parameters:
s- a meta-constraint slide to be loaded
-
buildObjToMinimize
public void buildObjToMinimize(String id, XVariables.XVarInteger x)
Description copied from interface:XCallbacks2Methods to be implemented for managing objectives- Specified by:
buildObjToMinimizein interfaceXCallbacks- Specified by:
buildObjToMinimizein interfaceXCallbacks2
-
buildObjToMaximize
public void buildObjToMaximize(String id, XVariables.XVarInteger x)
- Specified by:
buildObjToMaximizein interfaceXCallbacks- Specified by:
buildObjToMaximizein interfaceXCallbacks2
-
buildObjToMinimize
public void buildObjToMinimize(String id, XNodeParent<XVariables.XVarInteger> tree)
- Specified by:
buildObjToMinimizein interfaceXCallbacks- Specified by:
buildObjToMinimizein interfaceXCallbacks2
-
buildObjToMaximize
public void buildObjToMaximize(String id, XNodeParent<XVariables.XVarInteger> tree)
- Specified by:
buildObjToMaximizein interfaceXCallbacks- Specified by:
buildObjToMaximizein interfaceXCallbacks2
-
buildObjToMinimize
public void buildObjToMinimize(String id, Types.TypeObjective type, XVariables.XVarInteger[] list)
- Specified by:
buildObjToMinimizein interfaceXCallbacks- Specified by:
buildObjToMinimizein interfaceXCallbacks2
-
buildObjToMaximize
public void buildObjToMaximize(String id, Types.TypeObjective type, XVariables.XVarInteger[] list)
- Specified by:
buildObjToMaximizein interfaceXCallbacks- Specified by:
buildObjToMaximizein interfaceXCallbacks2
-
buildObjToMinimize
public void buildObjToMinimize(String id, Types.TypeObjective type, XVariables.XVarInteger[] list, int[] coeffs)
- Specified by:
buildObjToMinimizein interfaceXCallbacks- Specified by:
buildObjToMinimizein interfaceXCallbacks2
-
buildObjToMaximize
public void buildObjToMaximize(String id, Types.TypeObjective type, XVariables.XVarInteger[] list, int[] coeffs)
- Specified by:
buildObjToMaximizein interfaceXCallbacks- Specified by:
buildObjToMaximizein interfaceXCallbacks2
-
buildObjToMinimize
public void buildObjToMinimize(String id, Types.TypeObjective type, XNode<XVariables.XVarInteger>[] trees)
- Specified by:
buildObjToMinimizein interfaceXCallbacks- Specified by:
buildObjToMinimizein interfaceXCallbacks2
-
buildObjToMaximize
public void buildObjToMaximize(String id, Types.TypeObjective type, XNode<XVariables.XVarInteger>[] trees)
- Specified by:
buildObjToMaximizein interfaceXCallbacks- Specified by:
buildObjToMaximizein interfaceXCallbacks2
-
buildObjToMinimize
public void buildObjToMinimize(String id, Types.TypeObjective type, XNode<XVariables.XVarInteger>[] trees, int[] coeffs)
- Specified by:
buildObjToMinimizein interfaceXCallbacks- Specified by:
buildObjToMinimizein interfaceXCallbacks2
-
buildObjToMaximize
public void buildObjToMaximize(String id, Types.TypeObjective type, XNode<XVariables.XVarInteger>[] trees, int[] coeffs)
- Specified by:
buildObjToMaximizein interfaceXCallbacks- Specified by:
buildObjToMaximizein interfaceXCallbacks2
-
-