Class Disjunction

  • All Implemented Interfaces:
    Iterable<net.sf.tweety.logics.commons.syntax.RelationalFormula>, Collection<net.sf.tweety.logics.commons.syntax.RelationalFormula>, List<net.sf.tweety.logics.commons.syntax.RelationalFormula>, net.sf.tweety.commons.Formula, net.sf.tweety.logics.commons.syntax.AssociativeFormulaSupport.AssociativeSupportBridge, net.sf.tweety.logics.commons.syntax.interfaces.AssociativeFormula<net.sf.tweety.logics.commons.syntax.RelationalFormula>, net.sf.tweety.logics.commons.syntax.interfaces.ClassicalFormula, net.sf.tweety.logics.commons.syntax.interfaces.ComplexLogicalFormula, 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.LogicStructure, net.sf.tweety.logics.commons.syntax.interfaces.ProbabilityAware, net.sf.tweety.logics.commons.syntax.interfaces.QuantifiedFormula, net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula

    public class Disjunction
    extends AssociativeFolFormula
    The classical disjunction of first-order logic.
    Author:
    Matthias Thimm
    • Constructor Detail

      • Disjunction

        public Disjunction​(Collection<? extends net.sf.tweety.logics.commons.syntax.RelationalFormula> formulas)
        Creates a new disjunction with the given inner formulas.
        Parameters:
        formulas - a collection of formulas.
      • Disjunction

        public Disjunction()
        Creates a new (empty) disjunction.
      • Disjunction

        public Disjunction​(net.sf.tweety.logics.commons.syntax.RelationalFormula first,
                           net.sf.tweety.logics.commons.syntax.RelationalFormula second)
        Creates a new disjunction with the two given formulae
        Parameters:
        first - a relational formula.
        second - a relational formula.
    • Method Detail

      • isDnf

        public boolean isDnf()
        Description copied from class: FolFormula
        Checks whether this formula is in disjunctive normal form.
        Specified by:
        isDnf in class FolFormula
        Returns:
        "true" iff this formula is in disjunctive normal form.
      • toNnf

        public FolFormula toNnf()
        Description copied from class: FolFormula
        Makes the negation normal form of this formula.
        Specified by:
        toNnf in class FolFormula
        Returns:
        the NNF of this formula
      • collapseAssociativeFormulas

        public net.sf.tweety.logics.commons.syntax.RelationalFormula collapseAssociativeFormulas()
        Description copied from class: FolFormula
        This method collapses all associative operations appearing in this term, e.g. every a||(b||c) becomes a||b||c.
        Specified by:
        collapseAssociativeFormulas in class FolFormula
        Returns:
        the collapsed formula.
      • clone

        public Disjunction 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 FolFormula
      • createEmptyFormula

        public Disjunction createEmptyFormula()
      • getOperatorSymbol

        public String getOperatorSymbol()
      • getEmptySymbol

        public String getEmptySymbol()