|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--de.rwth.domains.templates.LiftedPOSet
|
+--de.rwth.domains.templates.LiftedCompleteLattice
Class for the creation of lifted complete lattices by adding an unique additional top element to a pre lattice.
There is no check if the resulting structure fulfills the specified
constraints!
| Inner classes inherited from class de.rwth.domains.Set |
Set.Default |
| Field Summary | |
protected java.lang.Object |
top
The unique new top element of this lifted lattice. |
| Fields inherited from class de.rwth.domains.templates.LiftedPOSet |
bottom, poset |
| Constructor Summary | |
LiftedCompleteLattice(POSet poset,
java.lang.Object bottom,
java.lang.Object top)
Lifts an existing partially ordered set to a lattice by adding newly created unique top element name "top" and newly created unique bottom element name "bottom". |
|
LiftedCompleteLattice(PreLattice prelattice)
Lifts an existing pre lattice to a lattice by adding newly created unique top element name "top". |
|
LiftedCompleteLattice(PreLattice prelattice,
java.lang.Object top)
Lifts an existing pre lattice to a lattice by adding a top element. |
|
LiftedCompleteLattice(PreLattice prelattice,
java.lang.String toplabel)
Lifts an existing pre lattice to a lattice by adding newly created unique top element name toplabel. |
|
| Method Summary | |
java.lang.Object |
bottom()
Gets the least element of this CompleteLattice. |
boolean |
equals(java.lang.Object e1,
java.lang.Object e2)
Returns true either if both e1 and e2 are
the unique top element of this set of they are equal in the underlying set. |
boolean |
isElement(java.lang.Object e)
The method isElement 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()
The method iterator returns an
Iterator of the elements of this set, staring
with the unique least element. |
java.util.Iterator |
iteratorSkel()
The method iterator returns an
Iterator of the elements of this set, staring
with the unique least element. |
java.lang.Object |
join(java.lang.Object e1,
java.lang.Object e2)
Computes the least upper bound of two elements in the following way: If le(e1,e2) holds then this is e2 and vice
versa. |
boolean |
le(java.lang.Object e1,
java.lang.Object e2)
Returns true either if e1 is the unique top 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 top element of
this set and e2 is not or if e1 is less than
e2 in the underlying set. |
java.lang.Object |
meet(java.lang.Object e1,
java.lang.Object e2)
Computes the greatest lower bound of two elements in the following way: If le(e1,e2) holds then this is e1 and vice
versa. |
long |
size()
The method size returns the size of the set. |
long |
sizeSkel()
The method size returns the size of the set. |
java.lang.Object |
top()
Gets the greatest element of this CompleteLattice. |
| Methods inherited from class de.rwth.domains.templates.LiftedPOSet |
main |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.Object top
| Constructor Detail |
public LiftedCompleteLattice(PreLattice prelattice,
java.lang.Object top)
prelattice - a PreLattice valuetop - an Object value
public LiftedCompleteLattice(PreLattice prelattice,
java.lang.String toplabel)
prelattice - a PreLattice valuetoplabel - a String valuepublic LiftedCompleteLattice(PreLattice prelattice)
prelattice - a PreLattice value
public LiftedCompleteLattice(POSet poset,
java.lang.Object bottom,
java.lang.Object top)
poset - a POSet valuebottom - an Object valuetop - an Object value| Method Detail |
public boolean equals(java.lang.Object e1,
java.lang.Object e2)
true either if both e1 and e2 are
the unique top element of this set of they are equal in the underlying set.equals in interface Setequals in class LiftedPOSete1 - 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 top element of
this set and e2 is not or if e1 is less than
e2 in the underlying set.lt in interface POSetlt in class LiftedPOSete1 - 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 top element of
this set or if e1 is less or equal than e2 in the
underlying set.le in interface POSetle in class LiftedPOSete1 - a value of type Objecte2 - a value of type Objecttrue if e1 is less than or
equal than e2 in this set.public java.util.Iterator iterator()
iterator returns an
Iterator of the elements of this set, staring
with the unique least element.iterator in interface Setiterator in class LiftedPOSetIterator of all elements of this set.public long sizeSkel()
size returns the size of the set.sizeSkel in interface SetsizeSkel in class LiftedPOSetpublic java.util.Iterator iteratorSkel()
iterator returns an
Iterator of the elements of this set, staring
with the unique least element.iteratorSkel in interface SetiteratorSkel in class LiftedPOSetIterator of all elements of this set.public long size()
size returns the size of the set.size in interface Setsize in class LiftedPOSetpublic boolean isElement(java.lang.Object e)
isElement returns true if
e is the unique least element of this set or if
e is element of the underlying set.isElement in interface SetisElement in class LiftedPOSete - a value of type Objectboolean
public java.lang.Object meet(java.lang.Object e1,
java.lang.Object e2)
le(e1,e2) holds then this is e1 and vice
versa. Otherwise, its bottom().meet in interface Latticee1 - a value of type Objecte2 - a value of type Objecte1 and e2Domain.checkProperties(PreLattice l)
public java.lang.Object join(java.lang.Object e1,
java.lang.Object e2)
le(e1,e2) holds then this is e2 and vice
versa. Otherwise, its top().join in interface Latticee1 - a value of type Objecte2 - a value of type Objecte1 and e2Domain.checkProperties(PreLattice l)public java.lang.Object top()
CompleteLatticeCompleteLattice.
Implementations should guarantee that bottom is indeed least
element of this set, this is to say that isElement recognises the
value returned by bottom and lt(bottom(),e)==true for
all elements e.
top in interface CompleteLatticede.rwth.domains.CompleteLatticeDomain.checkProperties(CompleteLattice cl)public java.lang.Object bottom()
CompleteLatticeCompleteLattice.
Implementations should guarantee that bottom is indeed least
element of this set, this is to say that isElement recognises the
value returned by bottom and lt(bottom(),e)==true for
all elements e.
bottom in interface CompleteLatticede.rwth.domains.CompleteLatticeDomain.checkProperties(CompleteLattice cl)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||