|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.rwth.domains.templates.FunctionSet
Class for the creation of sets of functions with other finite (partially ordered) sets as domain and range.
Inner classes inherited from class de.rwth.domains.Set |
Set.Default |
Field Summary | |
protected Set |
domain
The domain of the functions in this set. |
protected Set |
range
The range of the functions in this set. |
Constructor Summary | |
FunctionSet(Set[] domains,
Set range)
Create a function set from an array of domains and a range. |
|
FunctionSet(Set domain,
Set range)
Create a function set from a domain and a range. |
Method Summary | |
boolean |
equals(java.lang.Object e1,
java.lang.Object e2)
Checks if a function equals another function of this 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 this
set. |
long |
size()
Returns the size of the 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 domain
protected Set range
Constructor Detail |
public FunctionSet(Set domain, Set range)
domain
- a value of type Set
range
- a value of type POSet
public FunctionSet(Set[] domains, Set range)
domains
- a value of type Set[]
range
- a value of type POSet
Method Detail |
public boolean equals(java.lang.Object e1, java.lang.Object e2)
equals
in interface Set
f1
- a value of type Object
f2
- a value of type Object
true
iff both f1
and
f2
are functions in
this set and for all x
in the domain holds
range.equals(f1(x),f2(x))
public boolean isElement(java.lang.Object e)
Set
isElement()
is true for all
objects generated by Set.iterator()
and false for all other
objects.isElement
in interface Set
de.rwth.domains.Set
e
- a value of type Object
true
if and only if this set contains this element.Set.iterator()
,
Domain.checkProperties(Set set)
public java.util.Iterator iterator()
Set
Iterator
of the elements of this set.
Set.isElement(Object e)
yields true for all elements.iterator
in interface Set
de.rwth.domains.Set
Iterator
of all elements of this set.Set.isElement(Object e)
,
Domain.checkProperties(Set set)
public long size()
size
in interface Set
range.size()domain.size()
public long sizeSkel()
sizeSkel
in interface Set
range.sizeSkel()domain.sizeSkel()
public java.util.Iterator iteratorSkel()
Set
Iterator
of the elements of the skeleton subset this
set. It maybe null
if there is no skeleton subset.
Set.isElement(Object e)
yields true for all elements.iteratorSkel
in interface Set
de.rwth.domains.Set
Iterator
of all elements of this set.Set.isElement(Object e)
,
Domain.checkProperties(Set set)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |