Package net.sf.tweety.logics.dl.syntax
Class ComplexConcept
- java.lang.Object
-
- net.sf.tweety.logics.dl.syntax.ComplexConcept
-
- All Implemented Interfaces:
net.sf.tweety.commons.Formula,net.sf.tweety.logics.commons.syntax.interfaces.ClassicalFormula,net.sf.tweety.logics.commons.syntax.interfaces.Conjunctable,net.sf.tweety.logics.commons.syntax.interfaces.Disjunctable,net.sf.tweety.logics.commons.syntax.interfaces.Invertable,net.sf.tweety.logics.commons.syntax.interfaces.ProbabilityAware,net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula
- Direct Known Subclasses:
AssociativeDlFormula,AtomicConcept,AtomicRole,BottomConcept,Complement,ExistentialRestriction,TopConcept,UniversalRestriction
public abstract class ComplexConcept extends Object implements net.sf.tweety.logics.commons.syntax.interfaces.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 Summary
Constructors Constructor Description ComplexConcept()
-
Method Summary
Modifier 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(net.sf.tweety.logics.commons.syntax.interfaces.Conjunctable f)UnioncombineWithOr(net.sf.tweety.logics.commons.syntax.interfaces.Disjunctable f)ComplexConceptcomplement()abstract booleanequals(Object other)Set<? extends net.sf.tweety.logics.commons.syntax.interfaces.Atom>getAtoms()Class<? extends net.sf.tweety.logics.commons.syntax.Predicate>getPredicateCls()abstract Set<net.sf.tweety.logics.commons.syntax.Predicate>getPredicates()abstract DlSignaturegetSignature()net.sf.tweety.math.probability.ProbabilitygetUniformProbability()abstract inthashCode()
-
-
-
Method Detail
-
complement
public ComplexConcept complement()
- Specified by:
complementin interfacenet.sf.tweety.logics.commons.syntax.interfaces.Invertable
-
combineWithOr
public Union combineWithOr(net.sf.tweety.logics.commons.syntax.interfaces.Disjunctable f)
- Specified by:
combineWithOrin interfacenet.sf.tweety.logics.commons.syntax.interfaces.Disjunctable
-
combineWithAnd
public Intersection combineWithAnd(net.sf.tweety.logics.commons.syntax.interfaces.Conjunctable f)
- Specified by:
combineWithAndin interfacenet.sf.tweety.logics.commons.syntax.interfaces.Conjunctable
-
collapseAssociativeFormulas
public 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.
-
clone
public abstract ComplexConcept clone()
Creates a deep copy of this formula
-
getAtoms
public Set<? extends net.sf.tweety.logics.commons.syntax.interfaces.Atom> getAtoms()
- Specified by:
getAtomsin interfacenet.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula
-
getPredicateCls
public Class<? extends net.sf.tweety.logics.commons.syntax.Predicate> getPredicateCls()
- Specified by:
getPredicateClsin interfacenet.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula
-
getUniformProbability
public net.sf.tweety.math.probability.Probability getUniformProbability()
- Specified by:
getUniformProbabilityin interfacenet.sf.tweety.logics.commons.syntax.interfaces.ProbabilityAware
-
getSignature
public abstract DlSignature getSignature()
- Specified by:
getSignaturein interfacenet.sf.tweety.commons.Formula
-
hashCode
public abstract int hashCode()
-
equals
public abstract boolean equals(Object other)
-
getPredicates
public abstract Set<net.sf.tweety.logics.commons.syntax.Predicate> getPredicates()
- Specified by:
getPredicatesin interfacenet.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula
-
-