public abstract class AbstractElement extends Object implements Element
Element providing most operations by delegation to the
containing lattice.| Modifier and Type | Field and Description |
|---|---|
protected Lattice |
lattice
The containing lattice.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractElement(Lattice lattice)
Create a new abstract element, initialising its containing lattice.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
comp(Element element)
Return whether this element is comparable with the provided element.
|
Element |
join(Element... element)
Return the join of this element and of the provided elements.
|
Element |
join(Element element)
Return the join of this element and of the provided element.
|
Lattice |
lattice()
Return the lattice containing this element.
|
boolean |
leq(Element element)
Return whether this element is less than or equal to the provided element in the order of
the containing lattice. |
Element |
meet(Element... element)
Return the meet of this element and of the provided elements.
|
Element |
meet(Element element)
Return the meet of this element and of the provided element.
|
Element |
pscomp(Element element)
Return the pseudocomplement of this element relative to another element (optional operation).
|
Element |
psdiff(Element element)
Return the difference of this element with another element (optional operation).
|
Element |
symdiff(Element element)
Return the symmetric difference between this element and another element (optional operation).
|
protected final Lattice lattice
protected AbstractElement(Lattice lattice)
lattice - the containing lattice of this abstract element.public Lattice lattice()
Elementpublic Element meet(Element... element)
Elementpublic Element meet(Element element)
Elementpublic Element join(Element... element)
Elementpublic Element join(Element element)
Elementpublic boolean comp(Element element)
Elementcomp in interface Elementelement - an element.element, false otherwise.public boolean leq(Element element)
Elementthe containing lattice.leq in interface Elementelement - an element.element,
false otherwise.public Element psdiff(Element element)
Elementpsdiff in interface Elementelement - an element.element.Lattice.psdiff(Element, Element)public Element pscomp(Element element)
Elementpscomp in interface Elementelement - an element.element.Lattice.pscomp(Element, Element)public Element symdiff(Element element)
Elementsymdiff in interface Elementelement - an element.element.Lattice.symdiff(Element, Element)