Package net.sf.tweety.logics.dl.syntax
Class ConceptAssertion
- java.lang.Object
-
- net.sf.tweety.logics.dl.syntax.DlAxiom
-
- net.sf.tweety.logics.dl.syntax.AssertionalAxiom
-
- net.sf.tweety.logics.dl.syntax.ConceptAssertion
-
- All Implemented Interfaces:
net.sf.tweety.commons.Formula,net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula
public class ConceptAssertion extends AssertionalAxiom
This class models a concept assertion in description logic, i.e. an expression of the form "a : C" (a is in the extension of C) where a is an Individual and C is a concept.- Author:
- Anna Gessler
-
-
Constructor Summary
Constructors Constructor Description ConceptAssertion()Empty default constructor.ConceptAssertion(Individual i, AtomicConcept c)Initializes a role assertion with the given atomic concept and Individual.ConceptAssertion(Individual i, ComplexConcept c)Initializes a role assertion with the given concept and Individual.
-
Method Summary
Modifier and Type Method Description ConceptAssertionclone()booleanequals(Object obj)ComplexConceptgetConcept()Get the concept of this assertional axiom (= the concept that the individual is an instance of).IndividualgetIndividual()Get the individual of this assertional axiom (= the individual that is an instance of this axiom's concept)Set<net.sf.tweety.logics.commons.syntax.Predicate>getPredicates()DlSignaturegetSignature()inthashCode()booleanisAtomic()StringtoString()-
Methods inherited from class net.sf.tweety.logics.dl.syntax.DlAxiom
getAtoms, getPredicateCls, isLiteral
-
-
-
-
Constructor Detail
-
ConceptAssertion
public ConceptAssertion()
Empty default constructor.
-
ConceptAssertion
public ConceptAssertion(Individual i, ComplexConcept c)
Initializes a role assertion with the given concept and Individual.- Parameters:
i- an Individual, term of the conceptc- a (complex) concept
-
ConceptAssertion
public ConceptAssertion(Individual i, AtomicConcept c)
Initializes a role assertion with the given atomic concept and Individual.- Parameters:
i- an Individual, term of the conceptc- AtomicConcept
-
-
Method Detail
-
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 classDlAxiom
-
clone
public ConceptAssertion clone()
-
hashCode
public int hashCode()
-
equals
public boolean equals(Object obj)
-
getSignature
public DlSignature getSignature()
- Specified by:
getSignaturein interfacenet.sf.tweety.commons.Formula- Specified by:
getSignaturein classDlAxiom
-
getIndividual
public Individual getIndividual()
Get the individual of this assertional axiom (= the individual that is an instance of this axiom's concept)- Returns:
- the individual
-
getConcept
public ComplexConcept getConcept()
Get the concept of this assertional axiom (= the concept that the individual is an instance of).- Returns:
- the concept of this assertional axiom
-
isAtomic
public boolean isAtomic()
- Specified by:
isAtomicin classAssertionalAxiom- Returns:
- "true" if the concept of the assertion is atomic, "false" if it is a complex concept
-
-