|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SetVar
Created by IntelliJ IDEA. User: Hadrien Date: 6 juin 2004 Time: 09:51:52 To change this template use File | Settings | File Templates.
Method Summary | |
---|---|
boolean |
addToKernel(int x,
int idx)
Propagation events updating the kernel of a variable (i.e adding a value) |
boolean |
canBeEqualTo(SetVar x)
Public user API: Domains : testing whether two variables have intersecting domains. |
SetDomain |
getDomain()
Public user API: Domains : returns the object responsible for storing the enumeration of values in the domain |
int |
getEnveloppeDomainSize()
Public user API: Domains : retrieves the number of values in the enveloppe domain. |
int |
getEnveloppeInf()
Returns the lower bound of the enveloppe variable domain. |
int |
getEnveloppeSup()
|
int |
getKernelDomainSize()
Public user API: Domains : retrieves the number of values in the kernel domain. |
int |
getKernelInf()
|
int |
getKernelSup()
|
int[] |
getValue()
Returns the value of the variable if instantiated. |
boolean |
instantiate(int[] x,
int idx)
Propagation events instantiated a set var to a specific set of values |
boolean |
isInDomainEnveloppe(int x)
Public user API: Domains : testing whether a value is in the enveloppe domain. |
boolean |
isInDomainKernel(int x)
Public user API: Domains : testing whether a value is in the kernel domain |
boolean |
remFromEnveloppe(int x,
int idx)
Propagation events updating the enveloppe of a variable (i.e removing a value) |
void |
setVal(int[] val)
set the value of the variable to the set val. |
void |
setValIn(int x)
Public user API: setting a value to the kernel of a set variable |
void |
setValOut(int x)
Public user API: removing a value from the Enveloppe of a set variable. |
Methods inherited from interface choco.Var |
---|
addConstraint, fail, getConstraint, getConstraintsIterator, getConstraintVector, getEvent, getIndexVector, getNbConstraints, getVarIndex, isInstantiated |
Methods inherited from interface choco.Entity |
---|
getProblem, pretty |
Method Detail |
---|
void setValIn(int x) throws ContradictionException
x
- the value that is set to the variable
ContradictionException
void setValOut(int x) throws ContradictionException
x
- the removed value
ContradictionException
SetDomain getDomain()
boolean isInDomainKernel(int x)
x
- the tested valueboolean isInDomainEnveloppe(int x)
x
- the tested valueboolean canBeEqualTo(SetVar x)
x
- the other variableint getKernelDomainSize()
int getEnveloppeDomainSize()
int getEnveloppeInf()
int getEnveloppeSup()
int getKernelInf()
int getKernelSup()
int[] getValue()
void setVal(int[] val) throws ContradictionException
val
- the value to be set
ContradictionException
boolean addToKernel(int x, int idx) throws ContradictionException
x
- a value of the enveloppe domain to be added to the kernelidx
- the index of the constraint that generated the var
ContradictionException
boolean remFromEnveloppe(int x, int idx) throws ContradictionException
x
- a value of the enveloppe domain to be removedidx
- the index of the constraint that generated the var
ContradictionException
boolean instantiate(int[] x, int idx) throws ContradictionException
x
- a set of values describing the final instantiated kernelidx
- the index of the constraint that generated the var
ContradictionException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |