|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--de.rwth.domains.templates.LiftedPOSet
Class for the creation of lifted partially ordered sets, which are partially ordered sets with an unique additional least element.
| Inner classes inherited from class de.rwth.domains.Set |
Set.Default |
| Field Summary | |
protected java.lang.Object |
bottom
The unique new bottom element of this lifted partially ordered set. |
protected POSet |
poset
The underlying partially ordered set. |
| Constructor Summary | |
LiftedPOSet(POSet poset)
Lifts an existing partially ordered set by adding a new unique least element. |
|
LiftedPOSet(POSet poset,
java.lang.Object bottom)
Lifts an existing partially ordered set by adding a new unique least element. |
|
LiftedPOSet(POSet poset,
java.lang.String botlabel)
Lifts an existing partially ordered set by adding a new unique least element. |
|
| Method Summary | |
boolean |
equals(java.lang.Object e1,
java.lang.Object e2)
Returns true either if both e1 and e2 are
the unique least element of this set of they are equal in the underlying set. |
boolean |
isElement(java.lang.Object e)
Returns true if e is the unique least element of this
set or if e is element of the underlying set. |
java.util.Iterator |
iterator()
Returns an Iterator of the elements of this set, staring with the
unique least element. |
java.util.Iterator |
iteratorSkel()
Returns an Iterator of the elements of this set, staring with the
unique least element. |
boolean |
le(java.lang.Object e1,
java.lang.Object e2)
Returns true either if e1 is the unique least element
of this set or if e1 is less or equal than e2 in the
underlying set. |
boolean |
lt(java.lang.Object e1,
java.lang.Object e2)
Returns true either if e1 is the unique least element
of this set and e2 is not or if e1 is less than
e2 in the underlying set. |
static void |
main(java.lang.String[] args)
Mini test environment. |
long |
size()
Returns the size of the set. |
long |
sizeSkel()
Returns the size of the set skeleton. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected POSet poset
protected java.lang.Object bottom
| Constructor Detail |
public LiftedPOSet(POSet poset,
java.lang.Object bottom)
poset - the partially ordered set to be lifted
public LiftedPOSet(POSet poset,
java.lang.String botlabel)
poset - the partially ordered set to be liftedpublic LiftedPOSet(POSet poset)
poset - the partially ordered set to be lifted| Method Detail |
public boolean equals(java.lang.Object e1,
java.lang.Object e2)
true either if both e1 and e2 are
the unique least element of this set of they are equal in the underlying set.equals in interface Sete1 - a value of type Objecte2 - a value of type Objecttrue if e1 and e2
are equal in this set.
public boolean lt(java.lang.Object e1,
java.lang.Object e2)
true either if e1 is the unique least element
of this set and e2 is not or if e1 is less than
e2 in the underlying set.lt in interface POSete1 - a value of type Objecte2 - a value of type Objecttrue if e1 is less than
e2 in this set.
public boolean le(java.lang.Object e1,
java.lang.Object e2)
true either if e1 is the unique least element
of this set or if e1 is less or equal than e2 in the
underlying set.le in interface POSete1 - a value of type Objecte2 - a value of type Objecttrue if e1 is less than or
equal than e2 in this set.public long size()
size in interface Setpublic java.util.Iterator iterator()
Iterator of the elements of this set, staring with the
unique least element.iterator in interface SetIterator of all elements of this set.public long sizeSkel()
sizeSkel in interface Setpublic java.util.Iterator iteratorSkel()
Iterator of the elements of this set, staring with the
unique least element.iteratorSkel in interface SetIterator of all elements of this set.public boolean isElement(java.lang.Object e)
true if e is the unique least element of this
set or if e is element of the underlying set.isElement in interface Sete - a value of type Objectbooleanpublic 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 | ||||||||