Class RoleAssertion
java.lang.Object
org.tweetyproject.logics.dl.syntax.DlAxiom
org.tweetyproject.logics.dl.syntax.AssertionalAxiom
org.tweetyproject.logics.dl.syntax.RoleAssertion
- All Implemented Interfaces:
Formula,SimpleLogicalFormula
This class models a role assertion in description logic, i.e. an
expression of the form "(a,b) : R", where a,b are Individuals
and R is a role.
- Author:
- Anna Gessler
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty default constructor.RoleAssertion(List<Individual> args, AtomicRole r) Initializes a role assertion with the given individuals and role.RoleAssertion(Pair<Individual, Individual> args, AtomicRole r) Initializes a role assertion with the given role and individuals.RoleAssertion(Individual a, Individual b, AtomicRole r) Initializes a role assertion with the given individuals and role. -
Method Summary
Methods inherited from class org.tweetyproject.logics.dl.syntax.DlAxiom
getAtoms, getPredicateCls, isLiteral
-
Constructor Details
-
RoleAssertion
public RoleAssertion()Empty default constructor. -
RoleAssertion
Initializes a role assertion with the given individuals and role.- Parameters:
a- an Individualb- an Individualr- a role
-
RoleAssertion
Initializes a role assertion with the given individuals and role.- Parameters:
args- list of individualsr- a role
-
RoleAssertion
Initializes a role assertion with the given role and individuals.- Parameters:
args- pair of individualsr- role
-
-
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.
-
getIndividuals
- Returns:
- the individuals of this assertional axiom (= the individuals that are instances of the role)
-
getRole
- Returns:
- the role that the individuals of this assertional axiom are instances 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
-