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: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 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:
isAtomic
in classAssertionalAxiom
- Returns:
- "true" if the concept of the assertion is atomic, "false" if it is a complex concept
-