Uses of Class
org.logicng.formulas.Literal
-
-
Uses of Literal in org.logicng.backbones
Methods in org.logicng.backbones that return types with arguments of type Literal Modifier and Type Method Description SortedSet<Literal>Backbone. getCompleteBackbone()Returns all literals of the backbone. -
Uses of Literal in org.logicng.cardinalityconstraints
Method parameters in org.logicng.cardinalityconstraints with type arguments of type Literal Modifier and Type Method Description voidCCSorting. merge(int m, LNGVector<Literal> inputA, LNGVector<Literal> inputB, EncodingResult formula, LNGVector<Literal> output, CCSorting.ImplicationDirection direction)Merges to input vectors.voidCCSorting. sort(int m, LNGVector<Literal> input, EncodingResult result, LNGVector<Literal> output, CCSorting.ImplicationDirection direction)Generates a sorter encoding for the given input. -
Uses of Literal in org.logicng.datastructures
Methods in org.logicng.datastructures that return types with arguments of type Literal Modifier and Type Method Description SortedSet<Literal>Assignment. literals()Returns all literals of this assignment.List<Literal>Assignment. negativeLiterals()Returns the negative literals of this assignment.Methods in org.logicng.datastructures with parameters of type Literal Modifier and Type Method Description voidEncodingResult. addClause(Literal... literals)Adds a clause to the resultvoidAssignment. addLiteral(Literal lit)Add a single literal to this assignment.booleanAssignment. evaluateLit(Literal lit)Evaluates a given literal.FormulaAssignment. restrictLit(Literal lit)Restricts a given literal to a constant.Method parameters in org.logicng.datastructures with type arguments of type Literal Modifier and Type Method Description voidEncodingResult. addClause(LNGVector<Literal> literals)Adds a clause to the resultFormulaAssignment. blockingClause(FormulaFactory f, Collection<? extends Literal> literals)Creates the blocking clause for this assignment wrt.Constructors in org.logicng.datastructures with parameters of type Literal Constructor Description Assignment(Literal lit)Constructs a new assignment with a single literal assignment (without fast evaluation).Assignment(Literal... lits)Constructs a new assignment for a given array of literals (without fast evaluation).Assignment(Literal lit, boolean fastEvaluable)Constructs a new assignment with a single literal assignment.Constructor parameters in org.logicng.datastructures with type arguments of type Literal Constructor Description Assignment(Collection<? extends Literal> lits)Constructs a new assignment for a given collection of literals (without fast evaluation).Assignment(Collection<? extends Literal> lits, boolean fastEvaluable)Constructs a new assignment for a given collection of literals. -
Uses of Literal in org.logicng.formulas
Subclasses of Literal in org.logicng.formulas Modifier and Type Class Description classVariableBoolean variables.Fields in org.logicng.formulas declared as Literal Modifier and Type Field Description protected Literal[]PBConstraint. literalsMethods in org.logicng.formulas that return Literal Modifier and Type Method Description LiteralFormulaFactory. literal(String name, boolean phase)Creates a new literal instance with a given name and phase.LiteralLiteral. negate()Literal[]PBConstraint. operands()Returns the literals of this constraint.Methods in org.logicng.formulas that return types with arguments of type Literal Modifier and Type Method Description SortedSet<Literal>Formula. literals()Returns all literals occurring in this formula.Methods in org.logicng.formulas with parameters of type Literal Modifier and Type Method Description FormulaFormulaFactory. clause(Literal... literals)Creates a new clause from an array of literals.intLiteral. compareTo(Literal lit)FormulaFormulaFactory. pbc(CType comparator, int rhs, Literal[] literals, int[] coefficients)Creates a new pseudo-Boolean constraint.Method parameters in org.logicng.formulas with type arguments of type Literal Modifier and Type Method Description FormulaFormulaFactory. clause(Collection<? extends Literal> literals)Creates a new clause from a collection of literals.FormulaFormulaFactory. pbc(CType comparator, int rhs, List<? extends Literal> literals, List<Integer> coefficients)Creates a new pseudo-Boolean constraint. -
Uses of Literal in org.logicng.formulas.printer
Methods in org.logicng.formulas.printer with parameters of type Literal Modifier and Type Method Description protected StringFormulaStringRepresentation. pbLhs(Literal[] operands, int[] coefficients)Returns the string representation of the left-hand side of a pseudo-Boolean constraint.protected StringSortedStringRepresentation. pbLhs(Literal[] operands, int[] coefficients)Returns the sorted string representation of the left-hand side of a pseudo-Boolean constraint. -
Uses of Literal in org.logicng.functions
Methods in org.logicng.functions that return types with arguments of type Literal Modifier and Type Method Description Map<Literal,Integer>LiteralProfileFunction. apply(Formula formula, boolean cache)SortedSet<Literal>LiteralsFunction. apply(Formula formula, boolean cache)SortedSet<Literal>MinimumPrimeImplicantFunction. apply(Formula formula, boolean cache) -
Uses of Literal in org.logicng.io.parsers
Fields in org.logicng.io.parsers declared as Literal Modifier and Type Field Description LiteralLogicNGPseudoBooleanParser.MulContext. lFields in org.logicng.io.parsers with type parameters of type Literal Modifier and Type Field Description List<Literal>LogicNGPseudoBooleanParser.AddContext. literals -
Uses of Literal in org.logicng.knowledgecompilation.bdds
Methods in org.logicng.knowledgecompilation.bdds with parameters of type Literal Modifier and Type Method Description BDDBDD. restrict(Literal... restriction)Restricts the BDD.Method parameters in org.logicng.knowledgecompilation.bdds with type arguments of type Literal Modifier and Type Method Description BDDBDD. restrict(Collection<Literal> restriction)Restricts the BDD. -
Uses of Literal in org.logicng.knowledgecompilation.dnnf
Fields in org.logicng.knowledgecompilation.dnnf with type parameters of type Literal Modifier and Type Field Description protected List<Literal>DnnfMiniSatStyleSolver. impliedOperandsprotected List<Literal>DnnfCompiler. leafCurrentLiteralsMethods in org.logicng.knowledgecompilation.dnnf that return Literal Modifier and Type Method Description protected LiteralDnnfMiniSatStyleSolver. intToLiteral(int lit)LiteralDnnfMiniSatStyleSolver. litForIdx(int var)LiteralDnnfSatSolver. litForIdx(int var)Returns the literal corresponding to the given variable index.Methods in org.logicng.knowledgecompilation.dnnf with parameters of type Literal Modifier and Type Method Description intDnnfMiniSatStyleSolver. variableIndex(Literal lit)intDnnfSatSolver. variableIndex(Literal lit)Returns the index of the variable of the given literal.Method parameters in org.logicng.knowledgecompilation.dnnf with type arguments of type Literal Modifier and Type Method Description protected LNGIntVectorDnnfMiniSatStyleSolver. generateClauseVector(Collection<Literal> literals) -
Uses of Literal in org.logicng.primecomputation
Methods in org.logicng.primecomputation that return types with arguments of type Literal Modifier and Type Method Description List<SortedSet<Literal>>PrimeResult. getPrimeImplicants()Returns the list of prime implicants.List<SortedSet<Literal>>PrimeResult. getPrimeImplicates()Returns the list of prime implicates.SortedSet<Literal>NaivePrimeReduction. reduceImplicant(SortedSet<Literal> implicant)Computes a prime implicant from the given implicant for the given formula.SortedSet<Literal>NaivePrimeReduction. reduceImplicant(SortedSet<Literal> implicant, SATHandler handler)Computes a prime implicant from the given implicant for the given formula.SortedSet<Literal>NaivePrimeReduction. reduceImplicate(SortedSet<Literal> implicate)Computes a prime implicate from the given implicate for the given formula.SortedSet<Literal>NaivePrimeReduction. reduceImplicate(SortedSet<Literal> implicate, SATHandler handler)Computes a prime implicate from the given implicate for the given formula.Method parameters in org.logicng.primecomputation with type arguments of type Literal Modifier and Type Method Description SortedSet<Literal>NaivePrimeReduction. reduceImplicant(SortedSet<Literal> implicant)Computes a prime implicant from the given implicant for the given formula.SortedSet<Literal>NaivePrimeReduction. reduceImplicant(SortedSet<Literal> implicant, SATHandler handler)Computes a prime implicant from the given implicant for the given formula.SortedSet<Literal>NaivePrimeReduction. reduceImplicate(SortedSet<Literal> implicate)Computes a prime implicate from the given implicate for the given formula.SortedSet<Literal>NaivePrimeReduction. reduceImplicate(SortedSet<Literal> implicate, SATHandler handler)Computes a prime implicate from the given implicate for the given formula.Constructor parameters in org.logicng.primecomputation with type arguments of type Literal Constructor Description PrimeResult(List<SortedSet<Literal>> primeImplicants, List<SortedSet<Literal>> primeImplicates, PrimeResult.CoverageType coverageType)Constructs a new prime result. -
Uses of Literal in org.logicng.pseudobooleans
Methods in org.logicng.pseudobooleans with parameters of type Literal Modifier and Type Method Description protected List<Formula>PBEncoder. encode(Literal[] lits, int[] coeffs, int rhs)Builds a pseudo Boolean constraint of the formc_1 * lit_1 + c_2 * lit_2 + ... + c_n * lit_n >= k.Method parameters in org.logicng.pseudobooleans with type arguments of type Literal Modifier and Type Method Description List<Formula>PBAdderNetworks. encode(LNGVector<Literal> lits, LNGIntVector coeffs, int rhs, List<Formula> formula)List<Formula>PBBinaryMerge. encode(LNGVector<Literal> lts, LNGIntVector cffs, int rhs, List<Formula> formula)List<Formula>PBEncoding. encode(LNGVector<Literal> lits, LNGIntVector coeffs, int rhs, List<Formula> result)Encodes a pseudo-Boolean constraint and returns its CNF encoding.List<Formula>PBSWC. encode(LNGVector<Literal> lits, LNGIntVector coeffs, int rhs, List<Formula> result) -
Uses of Literal in org.logicng.solvers
Methods in org.logicng.solvers with parameters of type Literal Modifier and Type Method Description protected intMiniSat. getOrAddIndex(Literal lit)TristateMiniSat. sat(SATHandler handler, Literal literal)TristateSATSolver. sat(Literal literal)ReturnsTristate.TRUEif the current formula in the solver and a given literal are satisfiable,Tristate.FALSEif it is unsatisfiable, orUNDEFif the solving process was aborted.abstract TristateSATSolver. sat(SATHandler handler, Literal literal)ReturnsTristate.TRUEif the current formula in the solver and a given literal are satisfiable,Tristate.FALSEif it is unsatisfiable, orUNDEFif the solving process was aborted.Method parameters in org.logicng.solvers with type arguments of type Literal Modifier and Type Method Description protected LNGIntVectorMiniSat. generateClauseVector(Collection<? extends Literal> literals)Generates a clause vector of a collection of literals.TristateMiniSat. sat(SATHandler handler, Collection<? extends Literal> assumptions)TristateSATSolver. sat(Collection<? extends Literal> assumptions)ReturnsTristate.TRUEif the current formula in the solver and a given collection of assumed literals are satisfiable,Tristate.FALSEif it is unsatisfiable, orUNDEFif the solving process was aborted.abstract TristateSATSolver. sat(SATHandler handler, Collection<? extends Literal> assumptions)ReturnsTristate.TRUEif the current formula in the solver and a given collection of assumed literals are satisfiable,Tristate.FALSEif it is unsatisfiable, orUNDEFif the solving process was aborted.TristateSATSolver. satWithSelectionOrder(List<? extends Literal> selectionOrder)Solves the formula on the solver with a given selection order.TristateSATSolver. satWithSelectionOrder(List<? extends Literal> selectionOrder, SATHandler handler, Collection<? extends Literal> assumptions)Solves the formula on the solver with a given selection order, a given SAT handler and a list of additional assumptions.TristateSATSolver. satWithSelectionOrder(List<? extends Literal> selectionOrder, SATHandler handler, Collection<? extends Literal> assumptions)Solves the formula on the solver with a given selection order, a given SAT handler and a list of additional assumptions.voidMiniSat. setSelectionOrder(List<? extends Literal> selectionOrder)protected abstract voidSATSolver. setSelectionOrder(List<? extends Literal> selectionOrder)Sets the selection order of the variables and their polarity. -
Uses of Literal in org.logicng.solvers.functions
Methods in org.logicng.solvers.functions that return types with arguments of type Literal Modifier and Type Method Description SortedSet<Literal>UpZeroLiteralsFunction. apply(MiniSat solver, Consumer<Tristate> resultSetter)Methods in org.logicng.solvers.functions with parameters of type Literal Modifier and Type Method Description OptimizationFunction.BuilderOptimizationFunction.Builder. literals(Literal... literals)Sets the set of literals that should be optimized s.t.Method parameters in org.logicng.solvers.functions with type arguments of type Literal Modifier and Type Method Description OptimizationFunction.BuilderOptimizationFunction.Builder. literals(Collection<? extends Literal> literals)Sets the set of literals that should be optimized s.t.static OptimizationFunctionOptimizationFunction. maximize(Collection<? extends Literal> literals)Returns an optimization function which maximizes the given set of literals.static OptimizationFunctionOptimizationFunction. minimize(Collection<? extends Literal> literals)Returns an optimization function which minimizes the given set of literals. -
Uses of Literal in org.logicng.solvers.sat
Method parameters in org.logicng.solvers.sat with type arguments of type Literal Modifier and Type Method Description voidMiniSatStyleSolver. setSelectionOrder(List<? extends Literal> selectionOrder)Sets the variable's selection order that is used to solve the formula on the solver. -
Uses of Literal in org.logicng.transformations
Methods in org.logicng.transformations that return types with arguments of type Literal Modifier and Type Method Description protected static UBTree<Literal>Subsumption. generateSubsumedUBTree(Formula formula)Generates a UBTree from the formulas operands (clauses in CNF, minterms in DNF) where all subsumed operands are already deleted.Methods in org.logicng.transformations with parameters of type Literal Modifier and Type Method Description voidLiteralSubstitution. addSubstitution(Literal from, Literal to)Adds a new literal mapping to this substitution.Constructor parameters in org.logicng.transformations with type arguments of type Literal Constructor Description LiteralSubstitution(Map<Literal,Literal> substitution)Generate a new formula substitution with a given literal-to-literal mapping.LiteralSubstitution(Map<Literal,Literal> substitution)Generate a new formula substitution with a given literal-to-literal mapping. -
Uses of Literal in org.logicng.util
Methods in org.logicng.util with type parameters of type Literal Modifier and Type Method Description static <C extends Collection<Literal>>
CFormulaHelper. negateLiterals(Collection<? extends Literal> literals, Supplier<C> collectionFactory)Returns the negation of the given literalsMethods in org.logicng.util that return Literal Modifier and Type Method Description LiteralFormulaRandomizer. literal()Returns a random literal.Methods in org.logicng.util that return types with arguments of type Literal Modifier and Type Method Description static SortedSet<Literal>FormulaHelper. literals(Collection<? extends Formula> formulas)Returns all literals occurring in the given formulas.static SortedSet<Literal>FormulaHelper. literals(Formula... formulas)Returns all literals occurring in the given formulas.static SortedSet<Literal>FormulaHelper. strings2literals(Collection<String> strings, String negationPrefix, FormulaFactory f)Returns a sorted literal set from a given collection of strings and a formula factory.Methods in org.logicng.util with parameters of type Literal Modifier and Type Method Description static Variable[]FormulaHelper. literalsAsVariables(Literal[] literals)Converts a literal array to a variable array.Method parameters in org.logicng.util with type arguments of type Literal Modifier and Type Method Description static SortedSet<String>FormulaHelper. literals2strings(Collection<Literal> literals, String negationPrefix)Returns a list of strings from a given collection of literals.static <C extends Collection<Literal>>
CFormulaHelper. negateLiterals(Collection<? extends Literal> literals, Supplier<C> collectionFactory)Returns the negation of the given literals
-