- java.lang.Object
-
- org.logicng.formulas.Formula
-
- org.logicng.formulas.Literal
-
- org.logicng.formulas.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 Summary
Constructors Modifier Constructor Description protectedVariable(String name, FormulaFactory f)Constructor.
-
Method Summary
-
Methods inherited from class org.logicng.formulas.Literal
compareTo, containsNode, containsVariable, equals, evaluate, factory, hashCode, isAtomicFormula, isConstantFormula, iterator, name, negate, numberOfOperands, phase, restrict, stream, substitute, variable
-
Methods inherited from class org.logicng.formulas.Formula
apply, apply, bdd, bdd, clearCaches, cnf, containsVariable, functionCacheEntry, holds, holds, implies, isCNF, isContradiction, isDNF, isEquivalentTo, isImpliedBy, isNNF, isSatisfiable, isTautology, literals, nnf, numberOfAtoms, numberOfInternalNodes, numberOfNodes, predicateCacheEntry, setFunctionCacheEntry, setPredicateCacheEntry, setPredicateCacheEntry, setTransformationCacheEntry, substitute, toString, transform, transform, transformationCacheEntry, type, variables
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
Variable
protected Variable(String name, FormulaFactory f)
Constructor.- Parameters:
name- the literal namef- the factory which created this literal
-
-