Package net.sf.tweety.logics.dl.syntax
Class ComplexConcept
- java.lang.Object
- 
- net.sf.tweety.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
 
 public abstract class ComplexConcept extends java.lang.Object implements ClassicalFormula 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:- 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 SummaryConstructors Constructor Description ComplexConcept()
 - 
Method SummaryModifier and Type Method Description abstract ComplexConceptclone()Creates a deep copy of this formulaabstract ComplexConceptcollapseAssociativeFormulas()This method collapses all associative operations appearing in this term, e.g.IntersectioncombineWithAnd(Conjunctable f)Returns a conjunction of this and the given formula.UnioncombineWithOr(Disjunctable f)ComplexConceptcomplement()abstract booleanequals(java.lang.Object other)java.util.Set<? extends Atom>getAtoms()Processes the set of all atoms which appear in this formulajava.lang.Class<? extends Predicate>getPredicateCls()abstract java.util.Set<Predicate>getPredicates()Processes the set of all predicates which appear in this formulaabstract DlSignaturegetSignature()Returns the signature of the language of this formula.ProbabilitygetUniformProbability()abstract inthashCode()- 
Methods inherited from class java.lang.ObjectgetClass, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulaisLiteral
 
- 
 
- 
- 
- 
Method Detail- 
complementpublic ComplexConcept complement() - Specified by:
- complementin interface- Invertable
- Returns:
- the complement of this formula.
 
 - 
combineWithOrpublic Union combineWithOr(Disjunctable f) - Specified by:
- combineWithOrin interface- Disjunctable
- Parameters:
- f- a formula to be combined with OR and this.
- Returns:
- a disjunction of this and the given formula.
 
 - 
combineWithAndpublic Intersection combineWithAnd(Conjunctable f) Description copied from interface:ConjunctableReturns a conjunction of this and the given formula.- Specified by:
- combineWithAndin interface- Conjunctable
- Parameters:
- f- a formula to be combined with AND and this.
- Returns:
- a conjunction of this and the given formula.
 
 - 
collapseAssociativeFormulaspublic abstract ComplexConcept 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.
 
 - 
clonepublic abstract ComplexConcept clone() Creates a deep copy of this formula- Specified by:
- clonein interface- SimpleLogicalFormula
- Returns:
- the cloned formula
 
 - 
getAtomspublic java.util.Set<? extends Atom> getAtoms() Description copied from interface:SimpleLogicalFormulaProcesses the set of all atoms which appear in this formula- Specified by:
- getAtomsin interface- SimpleLogicalFormula
- Returns:
- The set of all atoms
 
 - 
getPredicateClspublic java.lang.Class<? extends Predicate> getPredicateCls() - Specified by:
- getPredicateClsin interface- SimpleLogicalFormula
- Returns:
- The class description of the predicate used by this formula.
 
 - 
getUniformProbabilitypublic Probability getUniformProbability() - Specified by:
- getUniformProbabilityin interface- ProbabilityAware
- Returns:
- this formula's probability in the uniform distribution.
 
 - 
getSignaturepublic abstract DlSignature getSignature() Description copied from interface:FormulaReturns the signature of the language of this formula.- Specified by:
- getSignaturein interface- Formula
- Returns:
- the signature of the language of this formula.
 
 - 
hashCodepublic abstract int hashCode() - Specified by:
- hashCodein interface- SimpleLogicalFormula
- Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic abstract boolean equals(java.lang.Object other) - Specified by:
- equalsin interface- SimpleLogicalFormula
- Overrides:
- equalsin class- java.lang.Object
 
 - 
getPredicatespublic abstract java.util.Set<Predicate> getPredicates() Description copied from interface:SimpleLogicalFormulaProcesses the set of all predicates which appear in this formula- Specified by:
- getPredicatesin interface- SimpleLogicalFormula
- Returns:
- all predicates that appear in this formula
 
 
- 
 
-