|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.rwth.domains.templates.TupleSet
Class for the creation of sets consisting of tuples from elements of other sets (Cartesian product).
Inner classes inherited from class de.rwth.domains.Set |
Set.Default |
Field Summary | |
protected Set[] |
sets
All the component Sets of this set. |
protected long |
size
The size of this set. |
protected long |
sizeSkel
The size of the skeleton of this set. |
Constructor Summary | |
TupleSet(Set[] sets)
Creates a TupleSet from an array of Sets . |
|
TupleSet(Set set1,
Set set2)
Creates a TupleSet from two Sets . |
Method Summary | |
boolean |
equals(java.lang.Object e1,
java.lang.Object e2)
Checks if two elements of this set are equal. |
Set[] |
getSets()
Returns clones of the component set. |
boolean |
isElement(java.lang.Object e)
Checks if an element is contained in this set. |
java.util.Iterator |
iterator()
Returns an Iterator of the elements of this set. |
java.util.Iterator |
iteratorSkel()
Returns an Iterator of the elements of the skeleton subset of this
set. |
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
Sets
of this set.protected long size
protected long sizeSkel
Constructor Detail |
public TupleSet(Set[] sets)
TupleSet
from an array of Sets
.sets
- the component Sets
public TupleSet(Set set1, Set set2)
TupleSet
from two Sets
.set1
- 1st component Set
set2
- 2nd component Set
Method Detail |
public boolean isElement(java.lang.Object e)
isElement
in interface Set
e
- a value of type Object
true
iff e
is
TupleElement
of
matching length and each component
of e
is contained in
the corresponding component
Set
of this
Set
.public boolean equals(java.lang.Object e1, java.lang.Object e2)
equals
in interface Set
e1
- a value of type Object
e2
- a value of type Object
true
iff both e1
and
e2
are
TupleElements
of
matching length and the corresponding
components of e1
and
e2
are equal.public long size()
size
in interface Set
public java.util.Iterator iterator()
Iterator
of the elements of this set. The elements are
all tuples resulting from combining the elements of the component sets.iterator
in interface Set
Iterator
of all elements of this set.public long sizeSkel()
sizeSkel
in interface Set
public java.util.Iterator iteratorSkel()
Iterator
of the elements of the skeleton subset of this
set. The elements are all tuples resulting from combining the elements of the
skeleton subsets of the component sets.iteratorSkel
in interface Set
Iterator
of all elements of this set.public Set[] getSets()
Set[]
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 |