Package net.sf.tweety.logics.dl.syntax
Class EquivalenceAxiom
- java.lang.Object
-
- net.sf.tweety.logics.dl.syntax.DlAxiom
-
- net.sf.tweety.logics.dl.syntax.EquivalenceAxiom
-
- All Implemented Interfaces:
net.sf.tweety.commons.Formula,net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula
public class EquivalenceAxiom extends DlAxiom
This class models an equivalence axiom, also known as general concept inclusion (GCU), meaning an expression of the form "C is a subset of or equal to D" with C and D as Concepts. This can also be read as "C implies D". If C implies D and C implies C, the two concepts are equivalent.
Equivalence axioms are used in the TBox of a DL knowledge base to model relationships between concepts, e.g. "MaleHuman is a subset or equal to Human".- Author:
- Anna Gessler
-
-
Constructor Summary
Constructors Constructor Description EquivalenceAxiom(ComplexConcept c, ComplexConcept d)Creates a new equivalence axiom with the given formulas (atomic or complex concepts).
-
Method Summary
Modifier and Type Method Description EquivalenceAxiomclone()booleanequals(Object obj)net.sf.tweety.commons.util.Pair<ComplexConcept,ComplexConcept>getFormulas()Set<net.sf.tweety.logics.commons.syntax.Predicate>getPredicates()DlSignaturegetSignature()inthashCode()booleanisLiteral()StringtoString()-
Methods inherited from class net.sf.tweety.logics.dl.syntax.DlAxiom
getAtoms, getPredicateCls
-
-
-
-
Constructor Detail
-
EquivalenceAxiom
public EquivalenceAxiom(ComplexConcept c, ComplexConcept d)
Creates a new equivalence axiom with the given formulas (atomic or complex concepts).- Parameters:
c- some conceptd- some concept
-
-
Method Detail
-
getSignature
public DlSignature getSignature()
- Specified by:
getSignaturein interfacenet.sf.tweety.commons.Formula- Specified by:
getSignaturein classDlAxiom
-
getFormulas
public net.sf.tweety.commons.util.Pair<ComplexConcept,ComplexConcept> getFormulas()
-
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
-
isLiteral
public boolean isLiteral()
-
clone
public EquivalenceAxiom clone()
-
hashCode
public int hashCode()
-
-