Class NOTTerm

  • All Implemented Interfaces:
    Term

    public class NOTTerm
    extends java.lang.Object
    implements Term
    The NOTTerm is used to model Boolean negation by embedding a Term that shall be negated in a NOTTerm.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Term term
      The term to negate.
    • Constructor Summary

      Constructors 
      Constructor Description
      NOTTerm​(Term term)
      Constructs a NOTTerm with a given term.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Term get()
      Returns the term.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • term

        protected final Term term
        The term to negate.
    • Constructor Detail

      • NOTTerm

        public NOTTerm​(Term term)
        Constructs a NOTTerm with a given term.
        Parameters:
        term - the term
    • Method Detail

      • get

        public Term get()
        Returns the term.
        Returns:
        the term
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object