Package net.sf.tweety.logics.dl.syntax
Class AtomicConcept
- java.lang.Object
-
- net.sf.tweety.logics.dl.syntax.ComplexConcept
-
- net.sf.tweety.logics.dl.syntax.AtomicConcept
-
- 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
public class AtomicConcept extends ComplexConcept
This class models an atomic concept (aka concept name) in description logics.
Note: Concept assertions like a:C ("the Individual a is in the extension of the Concept C") are modeled with a different class:ConceptAssertion.- Author:
- Anna Gessler
-
-
Constructor Summary
Constructors Constructor Description AtomicConcept(String name)Initializes an atomic concept with the given name.AtomicConcept(net.sf.tweety.logics.commons.syntax.Predicate p)
-
Method Summary
Modifier and Type Method Description ComplexConceptclone()Creates a deep copy of this formulaAtomicConceptcollapseAssociativeFormulas()This method collapses all associative operations appearing in this term, e.g.booleanequals(Object obj)StringgetName()net.sf.tweety.logics.commons.syntax.PredicategetPredicate()Set<net.sf.tweety.logics.commons.syntax.Predicate>getPredicates()DlSignaturegetSignature()inthashCode()booleanisLiteral()StringtoString()-
Methods inherited from class net.sf.tweety.logics.dl.syntax.ComplexConcept
combineWithAnd, combineWithOr, complement, getAtoms, getPredicateCls, getUniformProbability
-
-
-
-
Constructor Detail
-
AtomicConcept
public AtomicConcept(String name)
Initializes an atomic concept with the given name.- Parameters:
name- the name of the atomic concept
-
AtomicConcept
public AtomicConcept(net.sf.tweety.logics.commons.syntax.Predicate p)
-
-
Method Detail
-
getPredicate
public net.sf.tweety.logics.commons.syntax.Predicate getPredicate()
-
getName
public String getName()
-
getPredicates
public Set<net.sf.tweety.logics.commons.syntax.Predicate> getPredicates()
- Specified by:
getPredicatesin interfacenet.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula- Specified by:
getPredicatesin classComplexConcept
-
clone
public ComplexConcept clone()
Description copied from class:ComplexConceptCreates a deep copy of this formula- Specified by:
clonein interfacenet.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula- Specified by:
clonein classComplexConcept
-
collapseAssociativeFormulas
public AtomicConcept collapseAssociativeFormulas()
Description copied from class:ComplexConceptThis method collapses all associative operations appearing in this term, e.g. every a||(b||c) becomes a||b||c.- Specified by:
collapseAssociativeFormulasin classComplexConcept- Returns:
- the collapsed formula.
-
isLiteral
public boolean isLiteral()
-
getSignature
public DlSignature getSignature()
- Specified by:
getSignaturein interfacenet.sf.tweety.commons.Formula- Specified by:
getSignaturein classComplexConcept
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacenet.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula- Specified by:
hashCodein classComplexConcept
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacenet.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula- Specified by:
equalsin classComplexConcept
-
-