|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConstraintCollection
An interface for handling collections (sets/sequences) of constraints. This is useful for representing explanations, states, paths in a search tree, and so on.
Method Summary | |
---|---|
void |
add(Propagator constraint)
Adds a new constraint in the explain. |
void |
addAll(java.util.Collection collection)
Adds several constraints at a time |
void |
clear()
Deletes all indirect constraints. |
boolean |
contains(Propagator ct)
test if a constraint is in the collection |
boolean |
containsAll(ConstraintCollection collec)
test inclusion |
ConstraintCollection |
copy()
Clones the collection as a new one. |
void |
delete(Propagator constraint)
Deletes a constraint from the explain. |
boolean |
isEmpty()
Checks if the explain is empty (that is wether the size of the set is null). |
void |
merge(ConstraintCollection collection)
Merges an explain with the current one. |
int |
size()
return the size of the bitSet |
Method Detail |
---|
void merge(ConstraintCollection collection)
collection
- The collection of constraints that must be added to thisConstraintCollection copy()
void add(Propagator constraint)
constraint
- The constraint that should be added to the explain.
It must be a PalmConstraint
.void delete(Propagator constraint)
constraint
- The constraint that must be removed.void addAll(java.util.Collection collection)
collection
- The set of constraintsboolean isEmpty()
int size()
void clear()
boolean contains(Propagator ct)
boolean containsAll(ConstraintCollection collec)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |