public final class ACQ_ConstraintSet extends java.lang.Object implements java.lang.Iterable<ACQ_IConstraint>
Modifier and Type | Field and Description |
---|---|
protected java.util.Set<ACQ_IConstraint> |
constraints
Set of constraints
|
Constructor and Description |
---|
ACQ_ConstraintSet()
Constructor of an empty set
|
ACQ_ConstraintSet(ACQ_ConstraintSet other)
Constructor from a given set of constraints
Does not affect the set of constraints given as parameter
|
Modifier and Type | Method and Description |
---|---|
void |
add(ACQ_IConstraint cst)
Add a constraint to this set of constraints
|
boolean |
isEmpty()
Checks if this set of constraints is empty
|
java.util.Iterator<ACQ_IConstraint> |
iterator()
Returns an iterator of this set of constraints
|
boolean |
remove(ACQ_IConstraint cst)
Remove a constraint from this set of constraint
|
void |
removeAll(ACQ_ConstraintSet temp_kappa)
Remove from this set of constraints all constraints contained in the specified set
|
void |
retainAll(ACQ_ConstraintSet other_set)
Retains only the elements in this set that are contained in the
specified set (optional operation).
|
int |
size()
Returns the size of this set of constraints
|
protected java.util.Set<ACQ_IConstraint> constraints
public ACQ_ConstraintSet()
public ACQ_ConstraintSet(ACQ_ConstraintSet other)
other
- set of constraintspublic java.util.Iterator<ACQ_IConstraint> iterator()
iterator
in interface java.lang.Iterable<ACQ_IConstraint>
public void add(ACQ_IConstraint cst)
cst
- constraintpublic boolean remove(ACQ_IConstraint cst)
cst
- constraintpublic int size()
public void retainAll(ACQ_ConstraintSet other_set)
Retains only the elements in this set that are contained in the specified set (optional operation). In other words, removes from this set all of its elements that are not contained in the specified set. If the specified collection is also a set, this operation effectively modifies this set so that its value is the intersection of the two sets.
other_set
- set containing elements to be retained in this setpublic boolean isEmpty()
public void removeAll(ACQ_ConstraintSet temp_kappa)
temp_kappa
- set of constraints to remove