Class ConceptAssertion
java.lang.Object
org.tweetyproject.logics.dl.syntax.DlAxiom
org.tweetyproject.logics.dl.syntax.AssertionalAxiom
org.tweetyproject.logics.dl.syntax.ConceptAssertion
- All Implemented Interfaces:
Formula,SimpleLogicalFormula
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
ConstructorsConstructorDescriptionEmpty default constructor.Initializes a role assertion with the given atomic concept and Individual.Initializes a role assertion with the given concept and Individual. -
Method Summary
Methods inherited from class org.tweetyproject.logics.dl.syntax.DlAxiom
getAtoms, getPredicateCls, isLiteral
-
Constructor Details
-
ConceptAssertion
public ConceptAssertion()Empty default constructor. -
ConceptAssertion
Initializes a role assertion with the given concept and Individual.- Parameters:
i- an Individual, term of the conceptc- a (complex) concept
-
ConceptAssertion
Initializes a role assertion with the given atomic concept and Individual.- Parameters:
i- an Individual, term of the conceptc- AtomicConcept
-
-
Method Details
-
getPredicates
Description copied from interface:SimpleLogicalFormulaProcesses the set of all predicates which appear in this formula- Specified by:
getPredicatesin interfaceSimpleLogicalFormula- Specified by:
getPredicatesin classDlAxiom- Returns:
- all predicates that appear in this formula
-
clone
Description copied from interface:SimpleLogicalFormulaCreates a deep copy of this formula- Specified by:
clonein interfaceSimpleLogicalFormula- Specified by:
clonein classDlAxiom- Returns:
- the cloned formula
-
toString
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceSimpleLogicalFormula- Overrides:
hashCodein classObject
-
equals
- Specified by:
equalsin interfaceSimpleLogicalFormula- Overrides:
equalsin classObject
-
getSignature
Description copied from interface:FormulaReturns the signature of the language of this formula.- Specified by:
getSignaturein interfaceFormula- Specified by:
getSignaturein classDlAxiom- Returns:
- the signature of the language of this formula.
-
getIndividual
- Returns:
- the individual of this assertional axiom (= the individual that is an instance of this axiom's concept)
-
getConcept
- Returns:
- the concept of this assertional axiom (= the concept that the individual is an instance of).
-
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
-