Class AtomicRole

java.lang.Object
org.tweetyproject.logics.dl.syntax.ComplexConcept
org.tweetyproject.logics.dl.syntax.AtomicRole
All Implemented Interfaces:
Formula, ClassicalFormula, Conjunctable, Disjunctable, Invertable, ProbabilityAware, SimpleLogicalFormula

public class AtomicRole extends ComplexConcept
This class models a role in description logics.
Note: Role assertions like (a,b):r ("the Individuals a,b are in the extension of the role r") are modeled with a different class: ConceptAssertion.
Author:
Anna Gessler
  • Constructor Details

    • AtomicRole

      public AtomicRole(String name)
      Initializes a role with the given name.
      Parameters:
      name - the name of the role
    • AtomicRole

      public AtomicRole(Predicate p)
      Initializes an atomic role with the given predicate.
      Parameters:
      p - the predicate representing the role; must have arity 2
      Throws:
      IllegalArgumentException - if the predicate's arity is not 2
  • Method Details