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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ComplexConceptclone()Creates a deep copy of this formulaabstract ComplexConceptThis method collapses all associative operations appearing in this term, e.g.Returns a conjunction of this and the given formula.abstract booleangetAtoms()Processes the set of all atoms which appear in this formulaProcesses the set of all predicates which appear in this formulaabstract DlSignatureReturns the signature of the language of this formula.abstract inthashCode()Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:
complementin interfaceInvertable- Returns:
- the complement of this formula.
-
combineWithOr
- Specified by:
combineWithOrin 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:ConjunctableReturns a conjunction of this and the given formula.- Specified by:
combineWithAndin 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:
clonein interfaceSimpleLogicalFormula- Returns:
- the cloned formula
-
getAtoms
Description copied from interface:SimpleLogicalFormulaProcesses the set of all atoms which appear in this formula- Specified by:
getAtomsin interfaceSimpleLogicalFormula- Returns:
- The set of all atoms
-
getPredicateCls
- Specified by:
getPredicateClsin interfaceSimpleLogicalFormula- Returns:
- The class description of the predicate used by this formula.
-
getUniformProbability
- Specified by:
getUniformProbabilityin interfaceProbabilityAware- Returns:
- this formula's probability in the uniform distribution.
-
getSignature
Description copied from interface:FormulaReturns the signature of the language of this formula.- Specified by:
getSignaturein interfaceFormula- Returns:
- the signature of the language of this formula.
-
hashCode
public abstract int hashCode()- Specified by:
hashCodein interfaceSimpleLogicalFormula- Overrides:
hashCodein classObject
-
equals
- Specified by:
equalsin interfaceSimpleLogicalFormula- Overrides:
equalsin classObject
-
getPredicates
Description copied from interface:SimpleLogicalFormulaProcesses the set of all predicates which appear in this formula- Specified by:
getPredicatesin interfaceSimpleLogicalFormula- Returns:
- all predicates that appear in this formula
-