Class SAT.Literal<P>

java.lang.Object
eu.bandm.tools.dpll.SAT.Literal<P>
Enclosing class:
SAT<P>

public static class SAT.Literal<P> extends Object
Optionally negated propositional variable.
  • Constructor Details

    • Literal

      public Literal(boolean sign, P variable)
  • Method Details

    • negate

      public SAT.Literal<P> negate()
      Return the negation of this literal.

      This operation is a guaranteed involution: l.negate().negate() == l always succeeds.

      Returns:
      a literal with opposite sign and identical variable.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getSign

      public boolean getSign()
    • getVariable

      public P getVariable()