public class IntegerDomainIntevals extends IntegerDomain
CSP| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_SET_SIZE |
USE_DIET_DOMAIN| Constructor and Description |
|---|
IntegerDomainIntevals(IntegerDomainIntevals d) |
IntegerDomainIntevals(int lb,
int ub) |
IntegerDomainIntevals(java.util.SortedSet<java.lang.Integer> domain) |
appendValues, create, create, isEmpty, toStringpublic IntegerDomainIntevals(int lb,
int ub)
throws SugarException
SugarExceptionpublic IntegerDomainIntevals(java.util.SortedSet<java.lang.Integer> domain)
public IntegerDomainIntevals(IntegerDomainIntevals d)
public int size()
size in class IntegerDomainpublic int getLowerBound()
getLowerBound in class IntegerDomainpublic int getUpperBound()
getUpperBound in class IntegerDomainpublic boolean contains(int value)
contains in class IntegerDomainpublic int sizeLE(int value)
sizeLE in class IntegerDomainpublic IntegerDomain bound(int lb0, int ub0) throws SugarException
bound in class IntegerDomainSugarExceptionpublic java.util.Iterator<java.lang.Integer> values(int lb,
int ub)
values in class IntegerDomainpublic java.util.Iterator<java.lang.Integer> values()
values in class IntegerDomainpublic java.util.Iterator<int[]> intervals()
intervals in class IntegerDomainpublic IntegerDomain cap(IntegerDomainIntevals d1) throws SugarException
SugarExceptionpublic IntegerDomain cup(IntegerDomainIntevals d1) throws SugarException
SugarExceptionpublic IntegerDomain neg() throws SugarException
neg in class IntegerDomainSugarExceptionpublic IntegerDomain abs() throws SugarException
abs in class IntegerDomainSugarExceptionpublic IntegerDomain add(IntegerDomainIntevals d) throws SugarException
SugarExceptionpublic IntegerDomain sub(IntegerDomainIntevals d) throws SugarException
SugarExceptionpublic IntegerDomain mul(int a) throws SugarException
mul in class IntegerDomainSugarExceptionpublic IntegerDomain mul(IntegerDomainIntevals d) throws SugarException
SugarExceptionpublic IntegerDomain div(int a) throws SugarException
div in class IntegerDomainSugarExceptionpublic IntegerDomain div(IntegerDomainIntevals d) throws SugarException
SugarExceptionpublic IntegerDomain mod(int a) throws SugarException
SugarExceptionpublic IntegerDomain mod(IntegerDomainIntevals d) throws SugarException
SugarExceptionpublic IntegerDomain pow(int a) throws SugarException
SugarExceptionpublic IntegerDomain min(IntegerDomainIntevals d) throws SugarException
SugarExceptionpublic IntegerDomain max(IntegerDomainIntevals d) throws SugarException
SugarExceptionpublic IntegerDomain cup(IntegerDomain domain) throws SugarException
cup in class IntegerDomainSugarExceptionpublic IntegerDomain cap(IntegerDomain domain) throws SugarException
cap 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(IntegerDomain domain) throws SugarException
mul 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 IntegerDomainSugarException