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
ConstructorDescriptionEmpty 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 formulaboolean
Returns 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.int
hashCode()
boolean
isAtomic()
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:SimpleLogicalFormula
Processes the set of all predicates which appear in this formula- Specified by:
getPredicates
in interfaceSimpleLogicalFormula
- Specified by:
getPredicates
in classDlAxiom
- Returns:
- all predicates that appear in this formula
-
clone
Description copied from interface:SimpleLogicalFormula
Creates a deep copy of this formula- Specified by:
clone
in interfaceSimpleLogicalFormula
- Specified by:
clone
in classDlAxiom
- Returns:
- the cloned formula
-
toString
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceSimpleLogicalFormula
- Overrides:
hashCode
in classObject
-
equals
- Specified by:
equals
in interfaceSimpleLogicalFormula
- Overrides:
equals
in classObject
-
getSignature
Description copied from interface:Formula
Returns the signature of the language of this formula.- Specified by:
getSignature
in interfaceFormula
- Specified by:
getSignature
in 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:AssertionalAxiom
Determines if the concept involved in the assertion is atomic.- Specified by:
isAtomic
in classAssertionalAxiom
- Returns:
true
if the concept of the assertion is atomic,false
if it is a complex concept
-