Class ComplexConcept
java.lang.Object
org.tweetyproject.logics.dl.syntax.ComplexConcept
- All Implemented Interfaces:
Formula
,ClassicalFormula
,Conjunctable
,Disjunctable
,Invertable
,ProbabilityAware
,SimpleLogicalFormula
- Direct Known Subclasses:
AssociativeDlFormula
,AtomicConcept
,AtomicRole
,BottomConcept
,Complement
,ExistentialRestriction
,TopConcept
,UniversalRestriction
The common abstract class for concepts (also called concepts, complex concepts or concept descriptions)
of description logics.
Specifically, this library supports formulas of the description logic ALC (attributive concept language with complements). In an ALC language for a given signature, concepts are:
Specifically, this library supports formulas of the description logic ALC (attributive concept language with complements). In an ALC language for a given signature, concepts are:
- All atomic concepts of the signature
- The universal concept
- The bottom concept
- Complex concept descriptions, which are built with the following constructors:
- The intersection of two concept descriptions
- The union of two concept descriptions
- The complement of a concept description
- The universal restriction of a role by a concept description
- The existential restriction of a role by a concept description
- Author:
- Anna Gessler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract ComplexConcept
clone()
Creates a deep copy of this formulaabstract ComplexConcept
This method collapses all associative operations appearing in this term, e.g.Returns a conjunction of this and the given formula.abstract boolean
getAtoms()
Processes the set of all atoms which appear in this formulaProcesses the set of all predicates which appear in this formulaabstract DlSignature
Returns the signature of the language of this formula.abstract int
hashCode()
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.tweetyproject.logics.commons.syntax.interfaces.SimpleLogicalFormula
isLiteral
-
Constructor Details
-
ComplexConcept
public ComplexConcept()Default constructor forComplexConcept
. This constructor initializes a complex concept in description logic. It is meant to be extended by subclasses that implement specific types of complex concepts such as intersections, unions, and complements.
-
-
Method Details
-
complement
- Specified by:
complement
in interfaceInvertable
- Returns:
- the complement of this formula.
-
combineWithOr
- Specified by:
combineWithOr
in interfaceDisjunctable
- Parameters:
f
- a formula to be combined with OR and this.- Returns:
- a disjunction of this and the given formula.
-
combineWithAnd
Description copied from interface:Conjunctable
Returns a conjunction of this and the given formula.- Specified by:
combineWithAnd
in interfaceConjunctable
- Parameters:
f
- a formula to be combined with AND and this.- Returns:
- a conjunction of this and the given formula.
-
collapseAssociativeFormulas
This method collapses all associative operations appearing in this term, e.g. every a||(b||c) becomes a||b||c.- Returns:
- the collapsed formula.
-
clone
Creates a deep copy of this formula- Specified by:
clone
in interfaceSimpleLogicalFormula
- Returns:
- the cloned formula
-
getAtoms
Description copied from interface:SimpleLogicalFormula
Processes the set of all atoms which appear in this formula- Specified by:
getAtoms
in interfaceSimpleLogicalFormula
- Returns:
- The set of all atoms
-
getPredicateCls
- Specified by:
getPredicateCls
in interfaceSimpleLogicalFormula
- Returns:
- The class description of the predicate used by this formula.
-
getUniformProbability
- Specified by:
getUniformProbability
in interfaceProbabilityAware
- Returns:
- this formula's probability in the uniform distribution.
-
getSignature
Description copied from interface:Formula
Returns the signature of the language of this formula.- Specified by:
getSignature
in interfaceFormula
- Returns:
- the signature of the language of this formula.
-
hashCode
public abstract int hashCode()- Specified by:
hashCode
in interfaceSimpleLogicalFormula
- Overrides:
hashCode
in classObject
-
equals
- Specified by:
equals
in interfaceSimpleLogicalFormula
- Overrides:
equals
in classObject
-
getPredicates
Description copied from interface:SimpleLogicalFormula
Processes the set of all predicates which appear in this formula- Specified by:
getPredicates
in interfaceSimpleLogicalFormula
- Returns:
- all predicates that appear in this formula
-