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
Modifier and TypeMethodDescriptionclone()Creates a deep copy of this formulabooleanReturns the concept involved in this concept assertion.Returns the individual involved in this concept assertion.Processes the set of all predicates which appear in this formulaReturns the signature of the language of this formula.inthashCode()booleanisAtomic()Determines if the concept involved in the assertion is atomic.toString()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 involved in this concept assertion.This is the individual that is an instance of the concept in this assertion. For example, in the assertion "a : C", the individual would be "a".
- Returns:
- the individual of this concept assertion
-
getConcept
Returns the concept involved in this concept assertion.This is the concept that the individual in this assertion is an instance of. For example, in the assertion "a : C", the concept would be "C".
- Returns:
- the concept of this concept assertion
-
isAtomic
public boolean isAtomic()Description copied from class:AssertionalAxiomDetermines if the concept involved in the assertion is atomic.- Specified by:
isAtomicin classAssertionalAxiom- Returns:
trueif the concept of the assertion is atomic,falseif it is a complex concept
-