Module logicng

Class CFalse

  • All Implemented Interfaces:
    Iterable<Formula>

    public final class CFalse
    extends Constant
    Boolean constant "False".
    Since:
    1.0
    Version:
    1.0
    • Method Detail

      • evaluate

        public boolean evaluate​(Assignment assignment)
        Description copied from class: Formula
        Evaluates this formula with a given assignment. A literal not covered by the assignment evaluates to false if it is positive, otherwise it evaluates to true.
        Specified by:
        evaluate in class Formula
        Parameters:
        assignment - the given assignment
        Returns:
        the result of the evaluation, true or false
      • negate

        public Constant negate()
        Description copied from class: Formula
        Returns a negated copy of this formula.
        Specified by:
        negate in class Formula
        Returns:
        a negated copy of this formula
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object