|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.rwth.domains.templates.TrivialPOSet
Class for the creation of trivial partially ordered sets, where the less-or-equal relation is identical with the equals relation (and hence less-than is the empty relation).
Inner classes inherited from class de.rwth.domains.Set |
Set.Default |
Field Summary | |
protected Set |
set
The underlying set. |
Constructor Summary | |
TrivialPOSet()
Creates the trivial partially ordered empty set. |
|
TrivialPOSet(int i)
Creates a trivial partially ordered set with one int
as element. |
|
TrivialPOSet(int[] is)
Creates a trivial partially ordered et from an array of ints . |
|
TrivialPOSet(int from,
int to)
Creates a trivial partially ordered set with a range of iterator. |
|
TrivialPOSet(java.lang.Object o)
Creates a trivial partially ordered set with one element. |
|
TrivialPOSet(java.lang.Object[] os)
Creates a trivial partially ordered set from an array of Objects . |
|
TrivialPOSet(Set set)
Creates a trivial partially ordered set from a set. |
Method Summary | |
boolean |
equals(java.lang.Object e1,
java.lang.Object e2)
Returns true iff both parameters are equal in the underlying set. |
boolean |
isElement(java.lang.Object e)
Returns true iff the parameter is element in the underlying 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. |
boolean |
le(java.lang.Object e1,
java.lang.Object e2)
The method le is identical to equals . |
boolean |
lt(java.lang.Object e1,
java.lang.Object e2)
The method lt always returns false. |
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 set
Constructor Detail |
public TrivialPOSet()
public TrivialPOSet(Set set)
set
- the underlying set.public TrivialPOSet(java.lang.Object[] os)
Objects
.os
- all the elements of the new set.public TrivialPOSet(java.lang.Object o)
o
- the Object
which will be the
element of the new set.public TrivialPOSet(int i)
int
as element.i
- a value of type int
public TrivialPOSet(int from, int to)
from
- the first element of the setto
- the last element of the setpublic TrivialPOSet(int[] is)
ints
.is
- all the elements of the new set.Method Detail |
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
boolean
public boolean isElement(java.lang.Object e)
isElement
in interface Set
e
- a value of type Object
boolean
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()
Set
iterator().hasNext()
can be called.size
in interface Set
de.rwth.domains.Set
Domain.checkProperties(Set set)
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)
public long sizeSkel()
Set
iterator().hasNext()
can be called.sizeSkel
in interface Set
de.rwth.domains.Set
Domain.checkProperties(Set set)
public boolean lt(java.lang.Object e1, java.lang.Object e2)
lt
always returns false.lt
in interface POSet
e1
- a value of type Object
e2
- a value of type Object
boolean
public boolean le(java.lang.Object e1, java.lang.Object e2)
le
is identical to equals
.le
in interface POSet
e1
- a value of type Object
e2
- a value of type Object
boolean
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |