public class IntegerDomainDiet extends IntegerDomain
CSP| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_SET_SIZE |
USE_DIET_DOMAIN| Constructor and Description |
|---|
IntegerDomainDiet() |
IntegerDomainDiet(int lb,
int ub) |
IntegerDomainDiet(java.util.SortedSet<java.lang.Integer> domain) |
| Modifier and Type | Method and Description |
|---|---|
IntegerDomain |
abs() |
IntegerDomain |
add(IntegerDomain domain) |
IntegerDomain |
bound(int lb,
int ub) |
IntegerDomain |
cap(IntegerDomain domain) |
IntegerDomainDiet |
complement() |
boolean |
contains(int value) |
IntegerDomain |
cup(IntegerDomain domain) |
IntegerDomain |
div(int a) |
IntegerDomain |
div(IntegerDomain domain) |
int |
getLowerBound() |
int |
getUpperBound() |
java.util.Iterator<int[]> |
intervals() |
boolean |
isEmpty() |
static void |
main(java.lang.String[] args) |
IntegerDomain |
max(IntegerDomain domain) |
IntegerDomain |
min(IntegerDomain domain) |
IntegerDomain |
mod(IntegerDomain domain) |
IntegerDomain |
mul(int a) |
IntegerDomain |
mul(IntegerDomain domain) |
IntegerDomain |
neg() |
int |
size() |
int |
sizeLE(int value) |
IntegerDomain |
sub(IntegerDomain domain) |
java.util.Iterator<java.lang.Integer> |
values() |
java.util.Iterator<java.lang.Integer> |
values(int lb,
int ub) |
appendValues, create, create, toStringpublic IntegerDomainDiet()
public IntegerDomainDiet(int lb,
int ub)
public IntegerDomainDiet(java.util.SortedSet<java.lang.Integer> domain)
public boolean isEmpty()
isEmpty in class IntegerDomainpublic int size()
size in class IntegerDomainpublic int sizeLE(int value)
sizeLE in class IntegerDomainpublic boolean contains(int value)
contains in class IntegerDomainpublic int getLowerBound()
getLowerBound in class IntegerDomainpublic int getUpperBound()
getUpperBound in class IntegerDomainpublic java.util.Iterator<int[]> intervals()
intervals in class IntegerDomainpublic java.util.Iterator<java.lang.Integer> values()
values in class IntegerDomainpublic java.util.Iterator<java.lang.Integer> values(int lb,
int ub)
throws SugarException
values in class IntegerDomainSugarExceptionpublic IntegerDomain bound(int lb, int ub) throws SugarException
bound in class IntegerDomainSugarExceptionpublic IntegerDomainDiet complement() throws SugarException
SugarExceptionpublic IntegerDomain cap(IntegerDomain domain) throws SugarException
cap in class IntegerDomainSugarExceptionpublic IntegerDomain cup(IntegerDomain domain) throws SugarException
cup in class IntegerDomainSugarExceptionpublic IntegerDomain neg() throws SugarException
neg in class IntegerDomainSugarExceptionpublic IntegerDomain abs() throws SugarException
abs in class IntegerDomainSugarExceptionpublic IntegerDomain add(IntegerDomain domain) throws SugarException
add in class IntegerDomainSugarExceptionpublic IntegerDomain sub(IntegerDomain domain) throws SugarException
sub in class IntegerDomainSugarExceptionpublic IntegerDomain mul(int a) throws SugarException
mul in class IntegerDomainSugarExceptionpublic IntegerDomain mul(IntegerDomain domain) throws SugarException
mul in class IntegerDomainSugarExceptionpublic IntegerDomain div(int a) throws SugarException
div in class IntegerDomainSugarExceptionpublic IntegerDomain div(IntegerDomain domain) throws SugarException
div in class IntegerDomainSugarExceptionpublic IntegerDomain mod(IntegerDomain domain) throws SugarException
mod in class IntegerDomainSugarExceptionpublic IntegerDomain min(IntegerDomain domain) throws SugarException
min in class IntegerDomainSugarExceptionpublic IntegerDomain max(IntegerDomain domain) throws SugarException
max in class IntegerDomainSugarExceptionpublic static void main(java.lang.String[] args)