|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SConstraintCollection
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(Collection collection)
Adds several constraints at a time |
void |
clear()
Deletes all indirect constraints. |
boolean |
contains(Propagator ct)
currentElement if a constraint is in the collection |
boolean |
containsAll(SConstraintCollection collec)
currentElement inclusion |
SConstraintCollection |
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). |
Iterator<Propagator> |
iterator()
get an iterator over the collection of constraint. |
void |
merge(SConstraintCollection collection)
Merges an explain with the current one. |
int |
size()
return the size of the bitSet |
Method Detail |
---|
void merge(SConstraintCollection collection)
collection
- The collection of constraints that must be added to thisSConstraintCollection 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(Collection collection)
collection
- The set of constraintsboolean isEmpty()
int size()
void clear()
boolean contains(Propagator ct)
boolean containsAll(SConstraintCollection collec)
Iterator<Propagator> iterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |