public final class AtomicDecomposition.Atom extends Object implements HasAxioms, HasContainsAxiom
public boolean containsAxiom(OWLAxiom axiom)
HasContainsAxiom
OWLAxiom
.containsAxiom
in interface HasContainsAxiom
axiom
- The OWLAxiom
to test for.true
if this object contains axiom
, otherwise false
.@Nonnull public Stream<AtomicDecomposition.Atom> dependencies()
AtomicDecomposition.Atom
s this AtomicDecomposition.Atom
(directly or indirectly) depends on,
excluding this atom. In the literature, all atoms (A) with (this) > (A)
.AtomicDecomposition.Atom
s this AtomicDecomposition.Atom
depends on, excluding this atom@Nonnull public Stream<AtomicDecomposition.Atom> dependents()
AtomicDecomposition.Atom
s that (directly or indirectly) depend on this AtomicDecomposition.Atom
,
excluding this atom. In the literature, all atoms (A) with (A) > (this)
.AtomicDecomposition.Atom
s that depend on this AtomicDecomposition.Atom
, excluding this atompublic boolean dependsOn(AtomicDecomposition.Atom atom)
AtomicDecomposition.Atom
(directly or indirectly) depends on the given AtomicDecomposition.Atom
.
In the literature, if (this) > (given)
. Note that this returns false, if the
given atom is @{code ==} to this atom.atom
- The AtomicDecomposition.Atom
to check if this AtomicDecomposition.Atom
depends on it. Cannot be null.AtomicDecomposition.Atom
depends on the given AtomicDecomposition.Atom
NullPointerException
- If the given AtomicDecomposition.Atom
was null
@Nonnull public Stream<AtomicDecomposition.Atom> directDependencies()
AtomicDecomposition.Atom
s this AtomicDecomposition.Atom
DIRECTLY depends on, excluding this atom. In
the literature,
all atoms (A) with (this) > (A), such there is no other atom (B) with
(this) > (B) > (A)
. This method is equal to calling
thisAtom.dependencies(thisAtom::directlyDependsOn)
and on each call is in
O(this.getAxiomCount()^2) .AtomicDecomposition.Atom
s this AtomicDecomposition.Atom
DIRECTLY depends on, excluding this atom@Nonnull public Stream<AtomicDecomposition.Atom> directDependents()
AtomicDecomposition.Atom
s that DIRECTLY depend on this AtomicDecomposition.Atom
, excluding this atom.
In the literature,
all atoms (A) with (A) > (this), such there is no other atom (B)
with (A) > (B) > (this)
. This method is equal to calling
thisAtom.dependencies(thisAtom::isDirectDependencyOf)
and on each call is in
O(this.getAxiomCount()^2) .AtomicDecomposition.Atom
s this AtomicDecomposition.Atom
DIRECTLY depends on, excluding this atompublic boolean directlyDependsOn(AtomicDecomposition.Atom atom)
AtomicDecomposition.Atom
DIRECTLY depends on the given one. In the literature,
if
(this) > (given) and there is no other atom (B) with (this) > (B) > (given)
. On
each call this method is in O(this.getAxiomCount()). Note that this returns false, if the
given atom is @{code ==} to this atom.atom
- The AtomicDecomposition.Atom
to check if this one directly depends on itAtomicDecomposition.Atom
DIRECTLY depends on the given oneNullPointerException
- if the given AtomicDecomposition.Atom
was null
public int getAxiomCount()
AtomicDecomposition.Atom
.AtomicDecomposition.Atom
public boolean isDependencyOf(AtomicDecomposition.Atom atom)
AtomicDecomposition.Atom
(directly or indirectly) depends on this AtomicDecomposition.Atom
.
In the literature, if (given) > (this)
. Note that this returns false, if the
given atom is @{code ==} to this atom.atom
- The AtomicDecomposition.Atom
to check if it depends on this AtomicDecomposition.Atom
. Cannot be null.AtomicDecomposition.Atom
depends on the this AtomicDecomposition.Atom
NullPointerException
- If the given AtomicDecomposition.Atom
was null
public boolean isDirectDependencyOf(AtomicDecomposition.Atom atom)
AtomicDecomposition.Atom
DIRECTLY depends on this AtomicDecomposition.Atom
. In the
literature,
if (given) > (this) and there is no other atom (B) with (given) > (B)
> (this)
. On each call this method is in O(this.getAxiomCount()). Note that this
returns false, if the given atom is @{code ==} to this atom.atom
- The atom to check if it directly depends on this oneAtomicDecomposition.Atom
DIRECTLY depends on this oneNullPointerException
- if the given AtomicDecomposition.Atom
was null
Copyright © 2020 The University of Manchester. All rights reserved.