Class ASPLiteral

  • All Implemented Interfaces:
    Comparable<ASPLiteral>, net.sf.tweety.commons.Formula, net.sf.tweety.logics.commons.syntax.interfaces.Atom, net.sf.tweety.logics.commons.syntax.interfaces.ComplexLogicalFormula, net.sf.tweety.logics.commons.syntax.interfaces.Invertable, net.sf.tweety.logics.commons.syntax.interfaces.LogicStructure, net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula
    Direct Known Subclasses:
    ASPAtom, StrictNegation

    public abstract class ASPLiteral
    extends ASPBodyElement
    implements net.sf.tweety.logics.commons.syntax.interfaces.Atom, net.sf.tweety.logics.commons.syntax.interfaces.Invertable, Comparable<ASPLiteral>
    This interface defines common functionality for literals, meaning atoms or strictly negated atoms. In the ASP-Core-2 standard, the formulas represented by this class are also referred to as 'classical atoms'.
    Author:
    Anna Gessler, Tim Janus
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface net.sf.tweety.logics.commons.syntax.interfaces.Atom

        net.sf.tweety.logics.commons.syntax.interfaces.Atom.AtomImpl, net.sf.tweety.logics.commons.syntax.interfaces.Atom.RETURN_SET_PREDICATE
    • Constructor Summary

      Constructors 
      Constructor Description
      ASPLiteral()  
    • Constructor Detail

      • ASPLiteral

        public ASPLiteral()
    • Method Detail

      • cloneWithAddedTerm

        public abstract ASPLiteral cloneWithAddedTerm​(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> term)
        Creates a copy of the literal and adds the given term as argument to the end of the argument list.
        Parameters:
        term - the new argument.
        Returns:
        A copy of the literal containing the given term as new argument.
      • getAtom

        public abstract ASPAtom getAtom()
        Returns:
        The atom representing the literal.
      • isLiteral

        public boolean isLiteral()
        Specified by:
        isLiteral in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula
      • complement

        public abstract ASPLiteral complement()
        Specified by:
        complement in interface net.sf.tweety.logics.commons.syntax.interfaces.Invertable