Package it.unimi.dsi.lama4j
Class IntervalAntichains.Antichain
java.lang.Object
it.unimi.dsi.lama4j.AbstractElement
it.unimi.dsi.lama4j.IntervalAntichains.Antichain
- All Implemented Interfaces:
Element
- Enclosing class:
- IntervalAntichains
public static final class IntervalAntichains.Antichain extends AbstractElement
A class representing elements of this lattice (antichains of intervals).
Note that this class implements several additional operations (e.g., isContained(Element)
).
-
Field Summary
-
Method Summary
Modifier and Type Method Description IntervalAntichains.Antichain
contains(Element element)
Return the antichain formed by the intervals of this element that contain an interval of a given element.IntervalAntichains.Antichain
doesNotContain(Element element)
An alias forpsdiff(Element)
.boolean
equals(Object o)
int
hashCode()
IntervalAntichains.Antichain
incomparable(Element element)
Return the antichain formed by the intervals of this element that are incomparable with all intervals of a given element.IntervalAntichains.Antichain
isContained(Element element)
Return the antichain formed by the intervals of this element that are contained in some interval of a given element.IntervalAntichains.Antichain
isNotContained(Element element)
Return the antichain formed by the intervals of this element that are not contained in an interval of a given element.IntervalAntichains.Antichain
join(Element element)
Return the join of this element and of the provided element.IntervalAntichains.Antichain
join(Element... element)
Return the join of this element and of the provided elements.IntervalAntichains
lattice()
Return the lattice containing this element.IntervalAntichains.Antichain
meet(Element element)
Return the meet of this element and of the provided element.IntervalAntichains.Antichain
meet(Element... element)
Return the meet of this element and of the provided elements.IntervalAntichains.Antichain
pscomp(Element element)
Return the pseudocomplement of this element relative to another element (optional operation).IntervalAntichains.Antichain
psdiff(Element element)
Return the difference of this element with another element (optional operation).int
rank()
Return the rank of this element.IntervalAntichains.Antichain
setIntersection(Element element)
Return the set intersection of this element with another element.IntervalAntichains.Antichain
symdiff(Element element)
Return the symmetric difference between this element and another element (optional operation).String
toString()
static IntervalAntichains.Antichain
valueOf(IntervalAntichains lattice, int length, Interval... antichain)
static IntervalAntichains.Antichain
valueOf(IntervalAntichains lattice, ObjectArrayList<Interval> antichain)
static IntervalAntichains.Antichain
valueOf(IntervalAntichains lattice, Interval... antichain)
-
Field Details
-
DEBUG
public static final boolean DEBUG- See Also:
- Constant Field Values
-
interval
-
-
Method Details
-
valueOf
public static IntervalAntichains.Antichain valueOf(IntervalAntichains lattice, ObjectArrayList<Interval> antichain) -
valueOf
public static IntervalAntichains.Antichain valueOf(IntervalAntichains lattice, int length, Interval... antichain) -
valueOf
public static IntervalAntichains.Antichain valueOf(IntervalAntichains lattice, Interval... antichain) -
lattice
Description copied from interface:Element
Return the lattice containing this element.- Specified by:
lattice
in interfaceElement
- Overrides:
lattice
in classAbstractElement
- Returns:
- the lattice containing this element.
-
meet
Description copied from interface:Element
Return the meet of this element and of the provided elements. In particular, upon the empty list of arguments returns this element.- Specified by:
meet
in interfaceElement
- Overrides:
meet
in classAbstractElement
- Parameters:
element
- the elements whose meet, together with this element, has to be computed.- Returns:
- the meet of the provided elements and of this element.
-
meet
Description copied from interface:Element
Return the meet of this element and of the provided element.- Specified by:
meet
in interfaceElement
- Overrides:
meet
in classAbstractElement
- Parameters:
element
- the element whose meet, together with this element, has to be computed.- Returns:
- the meet of the provided element and of this element.
-
join
Description copied from interface:Element
Return the join of this element and of the provided elements. In particular, upon the empty list of arguments returns this element.- Specified by:
join
in interfaceElement
- Overrides:
join
in classAbstractElement
- Parameters:
element
- the elements whose join, together with this element, has to be computed.- Returns:
- the join of the provided elements and of this element.
-
join
Description copied from interface:Element
Return the join of this element and of the provided element.- Specified by:
join
in interfaceElement
- Overrides:
join
in classAbstractElement
- Parameters:
element
- the element whose join, together with this element, has to be computed.- Returns:
- the join of the provided element and of this element.
-
psdiff
Description copied from interface:Element
Return the difference of this element with another element (optional operation).- Specified by:
psdiff
in interfaceElement
- Overrides:
psdiff
in classAbstractElement
- Parameters:
element
- an element.- Returns:
- the difference between this element and
element
. - See Also:
Lattice.psdiff(Element, Element)
-
pscomp
Description copied from interface:Element
Return the pseudocomplement of this element relative to another element (optional operation).- Specified by:
pscomp
in interfaceElement
- Overrides:
pscomp
in classAbstractElement
- Parameters:
element
- an element.- Returns:
- the pseudocomplement of this element relative to
element
. - See Also:
Lattice.pscomp(Element, Element)
-
symdiff
Description copied from interface:Element
Return the symmetric difference between this element and another element (optional operation).- Specified by:
symdiff
in interfaceElement
- Overrides:
symdiff
in classAbstractElement
- Parameters:
element
- an element.- Returns:
- the symmetric difference of this element with
element
. - See Also:
Lattice.symdiff(Element, Element)
-
doesNotContain
An alias forpsdiff(Element)
.- Parameters:
element
- an element.- Returns:
- the antichain formed by the intervals of this
element that do not contain an interval of
element
.
-
rank
public int rank()Return the rank of this element.The rank will be cached. Thus, after the first call on this element this method will return the cached value.
- Returns:
- the rank of this element.
-
isNotContained
Return the antichain formed by the intervals of this element that are not contained in an interval of a given element.- Parameters:
element
- an element.- Returns:
- the antichain formed by the intervals of this
element that are not contained in an interval of
element
.
-
isContained
Return the antichain formed by the intervals of this element that are contained in some interval of a given element.- Parameters:
element
- an element.- Returns:
- the antichain formed by the intervals of this
element that are contained in some interval of
element
.
-
contains
Return the antichain formed by the intervals of this element that contain an interval of a given element.- Parameters:
element
- an element.- Returns:
- the antichain formed by the intervals of this
element that contain an interval of
element
.
-
incomparable
Return the antichain formed by the intervals of this element that are incomparable with all intervals of a given element.- Parameters:
element
- an element.- Returns:
- the antichain formed by the intervals of this
element that are incomparable with all intervals of
element
.
-
setIntersection
Return the set intersection of this element with another element.- Parameters:
element
- an element.- Returns:
- the set intersection of this element with
element
.
-
equals
-
hashCode
public int hashCode() -
toString
-