Module logicng

Class StandardProposition


  • public final class StandardProposition
    extends Proposition
    A proposition in LogicNG. A proposition is a formula with an additional textual description.
    Since:
    1.0
    Version:
    2.0.0
    • Constructor Detail

      • StandardProposition

        public StandardProposition​(Formula formula)
        Constructs a new proposition for a single formulas.
        Parameters:
        formula - the formulas
      • StandardProposition

        public StandardProposition​(String description,
                                   Formula formula)
        Constructs a new proposition for a single formulas.
        Parameters:
        description - the description
        formula - the formulas
    • Method Detail

      • formula

        public Formula formula()
        Description copied from class: Proposition
        Returns the formula of this proposition.
        Specified by:
        formula in class Proposition
        Returns:
        the formula of this proposition
      • description

        public String description()
        Returns the backpack of this proposition.
        Returns:
        the backpack of this proposition
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object