|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPackSConstraint
Method Summary | |
---|---|
void |
fail()
|
void |
fireAvailableBins()
|
IStateIntVector |
getAvailableBins()
|
IntDomainVar[] |
getBins()
|
IntDomainVar[] |
getLoads()
|
int |
getNbBins()
|
int |
getNbItems()
|
int[] |
getSizes()
|
NoSumList |
getStatus(int bin)
|
boolean |
pack(int item,
int bin)
Pack an item into a bin |
boolean |
remove(int item,
int bin)
Remove a possible assignment of an item into a bin. |
boolean |
updateInfLoad(int bin,
int load)
Update the minimal load of a given bin. |
boolean |
updateNbNonEmpty(int min,
int max)
update the number of non empty bins. |
boolean |
updateSupLoad(int bin,
int load)
Update the maximal load of a given bin. |
Method Detail |
---|
int getNbBins()
int getNbItems()
IntDomainVar[] getBins()
IntDomainVar[] getLoads()
int[] getSizes()
void fail() throws ContradictionException
ContradictionException
NoSumList getStatus(int bin)
IStateIntVector getAvailableBins()
void fireAvailableBins()
boolean updateInfLoad(int bin, int load) throws ContradictionException
bin
- the index of binload
- the new load
ContradictionException
- the contradiction exceptionboolean updateSupLoad(int bin, int load) throws ContradictionException
bin
- the index of binload
- the new load
ContradictionException
- the contradiction exceptionboolean updateNbNonEmpty(int min, int max) throws ContradictionException
ContradictionException
boolean pack(int item, int bin) throws ContradictionException
ContradictionException
- the contradiction exceptionboolean remove(int item, int bin) throws ContradictionException
ContradictionException
- the contradiction exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |