Module logicng

Class Variable

  • All Implemented Interfaces:
    Comparable<Literal>, Iterable<Formula>

    public class Variable
    extends Literal
    Boolean variables.

    A variable is a shortcut for a positive literal.

    Since:
    1.0
    Version:
    1.0
    • Constructor Detail

      • Variable

        protected Variable​(String name,
                           FormulaFactory f)
        Constructor.
        Parameters:
        name - the literal name
        f - the factory which created this literal