Package net.sf.tweety.logics.dl.syntax
Class RoleAssertion
- java.lang.Object
-
- net.sf.tweety.logics.dl.syntax.DlAxiom
-
- net.sf.tweety.logics.dl.syntax.AssertionalAxiom
-
- net.sf.tweety.logics.dl.syntax.RoleAssertion
-
- All Implemented Interfaces:
net.sf.tweety.commons.Formula,net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula
public class RoleAssertion extends AssertionalAxiom
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
Constructors Constructor Description RoleAssertion()Empty default constructor.RoleAssertion(List<Individual> args, AtomicRole r)Initializes a role assertion with the given individuals and role.RoleAssertion(net.sf.tweety.commons.util.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
Modifier and Type Method Description RoleAssertionclone()booleanequals(Object obj)net.sf.tweety.commons.util.Pair<Individual,Individual>getIndividuals()Get the individuals of this assertional axiom (= the individuals that are instances of the role)Set<net.sf.tweety.logics.commons.syntax.Predicate>getPredicates()AtomicRolegetRole()Get the role that the individuals of this assertional axiom are instances of.DlSignaturegetSignature()inthashCode()booleanisAtomic()StringtoString()-
Methods inherited from class net.sf.tweety.logics.dl.syntax.DlAxiom
getAtoms, getPredicateCls, isLiteral
-
-
-
-
Constructor Detail
-
RoleAssertion
public RoleAssertion()
Empty default constructor.
-
RoleAssertion
public RoleAssertion(Individual a, Individual b, AtomicRole r)
Initializes a role assertion with the given individuals and role.- Parameters:
a- an Individualb- an Individualr- a role
-
RoleAssertion
public RoleAssertion(List<Individual> args, AtomicRole r)
Initializes a role assertion with the given individuals and role.- Parameters:
args- list of individualsr- a role
-
RoleAssertion
public RoleAssertion(net.sf.tweety.commons.util.Pair<Individual,Individual> args, AtomicRole r)
Initializes a role assertion with the given role and individuals.- Parameters:
args- pair of individualsr- role
-
-
Method Detail
-
getPredicates
public Set<net.sf.tweety.logics.commons.syntax.Predicate> getPredicates()
- Specified by:
getPredicatesin interfacenet.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula- Specified by:
getPredicatesin classDlAxiom
-
clone
public RoleAssertion clone()
-
hashCode
public int hashCode()
-
equals
public boolean equals(Object obj)
-
getSignature
public DlSignature getSignature()
- Specified by:
getSignaturein interfacenet.sf.tweety.commons.Formula- Specified by:
getSignaturein classDlAxiom
-
getIndividuals
public net.sf.tweety.commons.util.Pair<Individual,Individual> getIndividuals()
Get the individuals of this assertional axiom (= the individuals that are instances of the role)- Returns:
- individuals
-
getRole
public AtomicRole getRole()
Get the role that the individuals of this assertional axiom are instances of.- Returns:
- role
-
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
-
-