Class AtomicDecomposition.Atom
java.lang.Object
org.semanticweb.owlapi.modularity.AtomicDecomposition.Atom
- All Implemented Interfaces:
HasAxioms
,HasContainsAxiom
- Enclosing class:
AtomicDecomposition
Class to represent atoms.
- Author:
- Marc Robin Nolte
-
Method Summary
Modifier and TypeMethodDescriptionaxioms()
boolean
containsAxiom
(OWLAxiom axiom) Determines whether or not this object contains a particularOWLAxiom
.Returns theAtomicDecomposition.Atom
s thisAtomicDecomposition.Atom
(directly or indirectly) depends on, excluding this atom.Returns theAtomicDecomposition.Atom
s that (directly or indirectly) depend on thisAtomicDecomposition.Atom
, excluding this atom.boolean
Checks if thisAtomicDecomposition.Atom
(directly or indirectly) depends on the givenAtomicDecomposition.Atom
.Returns theAtomicDecomposition.Atom
s thisAtomicDecomposition.Atom
DIRECTLY depends on, excluding this atom.Returns theAtomicDecomposition.Atom
s that DIRECTLY depend on thisAtomicDecomposition.Atom
, excluding this atom.boolean
Checks if thisAtomicDecomposition.Atom
DIRECTLY depends on the given one.int
Returns the number of axioms within thisAtomicDecomposition.Atom
.boolean
Checks if the givenAtomicDecomposition.Atom
(directly or indirectly) depends on thisAtomicDecomposition.Atom
.boolean
Checks if the givenAtomicDecomposition.Atom
DIRECTLY depends on thisAtomicDecomposition.Atom
.
-
Method Details
-
axioms
-
containsAxiom
Description copied from interface:HasContainsAxiom
Determines whether or not this object contains a particularOWLAxiom
.- Specified by:
containsAxiom
in interfaceHasContainsAxiom
- Parameters:
axiom
- TheOWLAxiom
to test for.- Returns:
true
if this object containsaxiom
, otherwisefalse
.
-
dependencies
Returns theAtomicDecomposition.Atom
s thisAtomicDecomposition.Atom
(directly or indirectly) depends on, excluding this atom. In the literature,all atoms (A) with (this) > (A)
.- Returns:
- The
AtomicDecomposition.Atom
s thisAtomicDecomposition.Atom
depends on, excluding this atom
-
dependents
Returns theAtomicDecomposition.Atom
s that (directly or indirectly) depend on thisAtomicDecomposition.Atom
, excluding this atom. In the literature,all atoms (A) with (A) > (this)
.- Returns:
- The
AtomicDecomposition.Atom
s that depend on thisAtomicDecomposition.Atom
, excluding this atom
-
dependsOn
Checks if thisAtomicDecomposition.Atom
(directly or indirectly) depends on the givenAtomicDecomposition.Atom
. In the literature,if (this) > (given)
. Note that this returns false, if the given atom is @{code ==} to this atom.- Parameters:
atom
- TheAtomicDecomposition.Atom
to check if thisAtomicDecomposition.Atom
depends on it. Cannot be null.- Returns:
- If this
AtomicDecomposition.Atom
depends on the givenAtomicDecomposition.Atom
- Throws:
NullPointerException
- If the givenAtomicDecomposition.Atom
wasnull
-
directDependencies
Returns theAtomicDecomposition.Atom
s thisAtomicDecomposition.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 callingthisAtom.dependencies(thisAtom::directlyDependsOn)
and on each call is in O(this.getAxiomCount()^2) .- Returns:
- The
AtomicDecomposition.Atom
s thisAtomicDecomposition.Atom
DIRECTLY depends on, excluding this atom
-
directDependents
Returns theAtomicDecomposition.Atom
s that DIRECTLY depend on thisAtomicDecomposition.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 callingthisAtom.dependencies(thisAtom::isDirectDependencyOf)
and on each call is in O(this.getAxiomCount()^2) .- Returns:
- The
AtomicDecomposition.Atom
s thisAtomicDecomposition.Atom
DIRECTLY depends on, excluding this atom
-
directlyDependsOn
Checks if thisAtomicDecomposition.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.- Parameters:
atom
- TheAtomicDecomposition.Atom
to check if this one directly depends on it- Returns:
- If this
AtomicDecomposition.Atom
DIRECTLY depends on the given one - Throws:
NullPointerException
- if the givenAtomicDecomposition.Atom
wasnull
-
getAxiomCount
public int getAxiomCount()Returns the number of axioms within thisAtomicDecomposition.Atom
.- Returns:
- The number of axioms within this
AtomicDecomposition.Atom
-
isDependencyOf
Checks if the givenAtomicDecomposition.Atom
(directly or indirectly) depends on thisAtomicDecomposition.Atom
. In the literature,if (given) > (this)
. Note that this returns false, if the given atom is @{code ==} to this atom.- Parameters:
atom
- TheAtomicDecomposition.Atom
to check if it depends on thisAtomicDecomposition.Atom
. Cannot be null.- Returns:
- If the given
AtomicDecomposition.Atom
depends on the thisAtomicDecomposition.Atom
- Throws:
NullPointerException
- If the givenAtomicDecomposition.Atom
wasnull
-
isDirectDependencyOf
Checks if the givenAtomicDecomposition.Atom
DIRECTLY depends on thisAtomicDecomposition.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.- Parameters:
atom
- The atom to check if it directly depends on this one- Returns:
- If the given
AtomicDecomposition.Atom
DIRECTLY depends on this one - Throws:
NullPointerException
- if the givenAtomicDecomposition.Atom
wasnull
-