Class Negation<T extends net.sf.tweety.commons.Formula>

  • Type Parameters:
    T - the type of formulas
    All Implemented Interfaces:
    net.sf.tweety.commons.Formula, net.sf.tweety.logics.commons.syntax.interfaces.ComplexLogicalFormula, net.sf.tweety.logics.commons.syntax.interfaces.LogicStructure, net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula

    public class Negation<T extends net.sf.tweety.commons.Formula>
    extends AbaElement<T>
    Author:
    Nils Geilen (geilenn@uni-koblenz.de) This represents a negation relation of form "not formula = negation"
    • Constructor Detail

      • Negation

        public Negation​(T formula,
                        T negation)
        Creates a new Negation
        Parameters:
        formula - a formula
        negation - it's complement
    • Method Detail

      • hashCode

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

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

        public net.sf.tweety.commons.Signature getSignature()
      • getPredicates

        public Set<? extends net.sf.tweety.logics.commons.syntax.Predicate> getPredicates()
      • getTerms

        public Set<net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> getTerms()
      • getTerms

        public <C extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> Set<C> getTerms​(Class<C> cls)
      • clone

        public Negation<T> clone()
        Specified by:
        clone in interface net.sf.tweety.logics.commons.syntax.interfaces.ComplexLogicalFormula
        Specified by:
        clone in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula
        Specified by:
        clone in class AbaElement<T extends net.sf.tweety.commons.Formula>
      • substitute

        public Negation<T> substitute​(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> v,
                                      net.sf.tweety.logics.commons.syntax.interfaces.Term<?> t)
                               throws IllegalArgumentException
        Specified by:
        substitute in interface net.sf.tweety.logics.commons.syntax.interfaces.ComplexLogicalFormula
        Specified by:
        substitute in class AbaElement<T extends net.sf.tweety.commons.Formula>
        Throws:
        IllegalArgumentException