Uses of Interface
org.xcsp.modeler.api.ProblemAPIBase.Occurrences
-
Packages that use ProblemAPIBase.Occurrences Package Description org.xcsp.modeler.api -
-
Uses of ProblemAPIBase.Occurrences in org.xcsp.modeler.api
Classes in org.xcsp.modeler.api that implement ProblemAPIBase.Occurrences Modifier and Type Class Description static class
ProblemAPIBase.Occurrences.OccurrencesInt
static class
ProblemAPIBase.Occurrences.OccurrencesInt1D
static class
ProblemAPIBase.Occurrences.OccurrencesIntRange
static class
ProblemAPIBase.Occurrences.OccurrencesIntRange1D
static class
ProblemAPIBase.Occurrences.OccurrencesVar1D
Methods in org.xcsp.modeler.api that return ProblemAPIBase.Occurrences Modifier and Type Method Description default ProblemAPIBase.Occurrences
ProblemAPIBase. occurBetween(int[] occursMin, int[] occursMax)
Returns an objectOccurrences
that represents the respective bounds about the number of times each value of a given set in a certain context (when posting a constraintcardinality
) must occur.default ProblemAPIBase.Occurrences
ProblemAPIBase. occurExactly(int... occurs)
Returns an objectOccurrences
that represents the respective number of times each value of a given set in a certain context (when posting a constraintcardinality
) must occur.default ProblemAPIBase.Occurrences
ProblemAPIBase. occurExactly(IVar.Var... occurs)
Returns an objectOccurrences
that represents the respective numbers of times each value of a given set in a certain context (when posting a constraintcardinality
) must occur.default ProblemAPIBase.Occurrences
ProblemAPIBase. occurrences(int... occurs)
Deprecated.default ProblemAPIBase.Occurrences
ProblemAPIBase. occurrences(IVar.Var... occurs)
Deprecated.default ProblemAPIBase.Occurrences
ProblemAPIBase. occursBetween(int[] occursMin, int[] occursMax)
Deprecated.default ProblemAPIBase.Occurrences
ProblemAPIBase. occursEachBetween(int occursMin, int occursMax)
Returns an objectOccurrences
that represents the bounds about the number of times each value of a given set in a certain context (when posting a constraintcardinality
) must occur each.default ProblemAPIBase.Occurrences
ProblemAPIBase. occursEachExactly(int occurs)
Returns an objectOccurrences
that represents the number of times each value of a given set in a certain context (when posting a constraintcardinality
) must occur.Methods in org.xcsp.modeler.api with parameters of type ProblemAPIBase.Occurrences Modifier and Type Method Description default CtrEntities.CtrEntity
ProblemAPI. cardinality(IVar.Var[] list, int[] values, boolean mustBeClosed, ProblemAPIBase.Occurrences occurrences)
Builds a constraintcardinality
from the specified arguments: when considering the sequence of values assigned to the variables oflist
, each integer invalues
at indexi
must occur a number of timesk_i
that respects the conditions imposed by the objectOccurrences
.default CtrEntities.CtrEntity
ProblemAPI. cardinality(IVar.Var[] list, int[] values, ProblemAPIBase.Occurrences occurrences)
Builds a constraintcardinality
from the specified arguments: when considering the sequence of values assigned to the variables oflist
, each integer invalues
at indexi
must occur a number of timesk_i
that respects the conditions imposed by the objectOccurrences
.default CtrEntities.CtrEntity
ProblemAPI. cardinality(IVar.Var[] list, IVar.Var[] values, boolean mustBeClosed, ProblemAPIBase.Occurrences occurrences)
Builds a constraintcardinality
from the specified arguments: when considering the sequence of values assigned to the variables oflist
, each integer invalues
at indexi
must occur a number of timesk_i
that respects the conditions imposed by the objectOccurrences
.default CtrEntities.CtrEntity
ProblemAPI. cardinality(IVar.Var[] list, IVar.Var[] values, ProblemAPIBase.Occurrences occurs)
Builds a constraintcardinality
from the specified arguments: when considering the sequence of values assigned to the variables oflist
, each integer invalues
at indexi
must occur a number of timesk_i
that respects the conditions imposed by the objectOccurrences
.default CtrEntities.CtrEntity
ProblemAPI. cardinality(IVar.Var[] list, Range values, ProblemAPIBase.Occurrences occurrences)
Builds a constraintcardinality
from the specified arguments: when considering the sequence of values assigned to the variables oflist
, each integer in the rangevalues
at indexi
must occur a number of timesk_i
that respects the conditions imposed by the objectOccurrences
.
-