|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--de.rwth.domains.templates.SumSet
Class for the creation of sets as the sum of other sets. Warning: This will violate the set properties, the same element is contained in more than one component.
| Inner classes inherited from class de.rwth.domains.Set |
Set.Default |
| Field Summary | |
protected Set[] |
sets
The sets contained in this set. |
protected long |
size
Its size, which is the sum of the sizes of the component sets. |
protected long |
sizeSkel
The size of the skeleton subset, which is the sum of the sizes of the skeleton subsets of the component sets. |
| Constructor Summary | |
SumSet(Set[] sets)
Creates a new SumSet instance from an array of component sets. |
|
SumSet(Set set1,
Set set2)
Creates a new SumSet instance from two component sets. |
|
| Method Summary | |
boolean |
equals(java.lang.Object e1,
java.lang.Object e2)
Returns true, if the equality holds in at least one of the components of this set. |
boolean |
isElement(java.lang.Object e)
Returns true, if the object is element of one of the components of this set. |
java.util.Iterator |
iterator()
Returns an iterator, which will iterate over all component set iterators. |
java.util.Iterator |
iteratorSkel()
Returns an iterator, which will iterate over all skeleton subset component set iterators. |
static void |
main(java.lang.String[] args)
Mini test environment. |
long |
size()
Returns the size of this set. |
long |
sizeSkel()
Returns the size of the skeleton subset of this set. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Set[] sets
protected long size
protected long sizeSkel
| Constructor Detail |
public SumSet(Set[] sets)
SumSet instance from an array of component sets.sets - a Set[] value
public SumSet(Set set1,
Set set2)
SumSet instance from two component sets.set1 - a Set valueset2 - a Set value| Method Detail |
public boolean equals(java.lang.Object e1,
java.lang.Object e2)
equals in interface Sete1 - an Object valuee2 - an Object valueboolean valuepublic boolean isElement(java.lang.Object e)
isElement in interface Sete - an Object valueboolean valuepublic java.util.Iterator iterator()
iterator in interface SetIterator valuepublic long size()
Setiterator().hasNext() can be called.size in interface Setde.rwth.domains.SetDomain.checkProperties(Set set)public long sizeSkel()
Setiterator().hasNext() can be called.sizeSkel in interface Setde.rwth.domains.SetDomain.checkProperties(Set set)public java.util.Iterator iteratorSkel()
iteratorSkel in interface SetIterator valuepublic static void main(java.lang.String[] args)
args - a String[] value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||