Class UniversalRestriction

  • All Implemented Interfaces:
    net.sf.tweety.commons.Formula, net.sf.tweety.logics.commons.syntax.interfaces.ClassicalFormula, net.sf.tweety.logics.commons.syntax.interfaces.Conjunctable, net.sf.tweety.logics.commons.syntax.interfaces.Disjunctable, net.sf.tweety.logics.commons.syntax.interfaces.Invertable, net.sf.tweety.logics.commons.syntax.interfaces.ProbabilityAware, net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula

    public class UniversalRestriction
    extends ComplexConcept
    This class models an universal restriction in description logics, i.e. an expression of the form "forall R.C" for a role R and a Concept C.
    Author:
    Anna Gessler
    • Constructor Detail

      • UniversalRestriction

        public UniversalRestriction​(AtomicRole r,
                                    ComplexConcept c)
        Creates a new ALC universal restriction with the given role and concept.
        Parameters:
        r - the role
        c - the concept that is being restricted by the role
    • Method Detail

      • getFormulas

        public net.sf.tweety.commons.util.Pair<AtomicRole,​ComplexConcept> getFormulas()
        Get the role and concept that are part of the universal restriction.
        Returns:
        an atomic role and a concept
      • getRole

        public AtomicRole getRole()
        Get the role of the universal restriction.
        Returns:
        an atomic role
      • getConcept

        public ComplexConcept getConcept()
        Get the concept of the universal restriction.
        Returns:
        a concept
      • getPredicates

        public Set<net.sf.tweety.logics.commons.syntax.Predicate> getPredicates()
        Specified by:
        getPredicates in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula
        Specified by:
        getPredicates in class ComplexConcept
      • isLiteral

        public boolean isLiteral()
      • clone

        public ComplexConcept clone()
        Description copied from class: ComplexConcept
        Creates a deep copy of this formula
        Specified by:
        clone in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula
        Specified by:
        clone in class ComplexConcept
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula
        Specified by:
        hashCode in class ComplexConcept
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula
        Specified by:
        equals in class ComplexConcept