Uses of Class
org.logicng.datastructures.Tristate
-
-
Uses of Tristate in org.logicng.backbones
Methods in org.logicng.backbones that return types with arguments of type Tristate Modifier and Type Method Description SortedMap<Variable,Tristate>Backbone. toMap()Returns the backbone as map from variables to tri-states. -
Uses of Tristate in org.logicng.datastructures
Methods in org.logicng.datastructures that return Tristate Modifier and Type Method Description static TristateTristate. fromBool(boolean b)Constructs a tristate constant from an ordinary Boolean value.static TristateTristate. negate(Tristate l)Returns the negation of a tristate constant.static TristateTristate. valueOf(String name)Returns the enum constant of this type with the specified name.static Tristate[]Tristate. values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in org.logicng.datastructures with parameters of type Tristate Modifier and Type Method Description static TristateTristate. negate(Tristate l)Returns the negation of a tristate constant. -
Uses of Tristate in org.logicng.formulas
Methods in org.logicng.formulas that return Tristate Modifier and Type Method Description TristateFormula. predicateCacheEntry(CacheEntry key)Returns an entry of the predicate cache of this formula.protected TristateFormulaFactory. predicateCacheEntry(Formula formula, CacheEntry key)Returns an entry of the predicate cache for the given formula.Methods in org.logicng.formulas with parameters of type Tristate Modifier and Type Method Description voidFormula. setPredicateCacheEntry(CacheEntry key, Tristate value)Sets an entry in the predicate cache of this formulaprotected voidFormulaFactory. setPredicateCacheEntry(Formula formula, CacheEntry key, Tristate value)Sets an entry in the predicate cache for the given formula. -
Uses of Tristate in org.logicng.knowledgecompilation.dnnf
Fields in org.logicng.knowledgecompilation.dnnf declared as Tristate Modifier and Type Field Description protected Tristate[]DnnfMiniSatStyleSolver. assignmentMethods in org.logicng.knowledgecompilation.dnnf that return Tristate Modifier and Type Method Description TristateDnnfMiniSatStyleSolver. valueOf(int lit)TristateDnnfSatSolver. valueOf(int lit)Returns the current assignment of the given literal. -
Uses of Tristate in org.logicng.solvers
Fields in org.logicng.solvers declared as Tristate Modifier and Type Field Description protected TristateSATSolver. resultMethods in org.logicng.solvers that return Tristate Modifier and Type Method Description TristateMiniSat. getResult()Returns the current result, e.g.TristateMiniSat. sat(SATHandler handler)TristateMiniSat. sat(SATHandler handler, Collection<? extends Literal> assumptions)TristateMiniSat. sat(SATHandler handler, Literal literal)TristateSATSolver. sat()ReturnsTristate.TRUEif the current formula in the solver is satisfiable, @{code Tristate.FALSE} if it is unsatisfiable, orUNDEFif the solving process was aborted.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.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)ReturnsTristate.TRUEif the current formula in the solver is satisfiable, @{code Tristate.FALSE} if 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.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.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.Methods in org.logicng.solvers with parameters of type Tristate Modifier and Type Method Description protected voidMiniSat. setResult(Tristate tristate) -
Uses of Tristate in org.logicng.solvers.datastructures
Methods in org.logicng.solvers.datastructures that return Tristate Modifier and Type Method Description TristateMSVariable. assignment()Returns the current assignment of this variable.Methods in org.logicng.solvers.datastructures with parameters of type Tristate Modifier and Type Method Description voidMSVariable. assign(Tristate assignment)Assigns this variable to a given lifted Boolean. -
Uses of Tristate in org.logicng.solvers.functions
Method parameters in org.logicng.solvers.functions with type arguments of type Tristate Modifier and Type Method Description BackboneBackboneFunction. apply(MiniSat solver, Consumer<Tristate> resultSetter)Set<Formula>FormulaOnSolverFunction. apply(MiniSat solver, Consumer<Tristate> resultSetter)List<Assignment>ModelEnumerationFunction. apply(MiniSat solver, Consumer<Tristate> resultSetter)AssignmentOptimizationFunction. apply(MiniSat solver, Consumer<Tristate> resultSetter)RESULTSolverFunction. apply(MiniSat solver, Consumer<Tristate> resultSetter)Applies this function to the given solver.UNSATCore<Proposition>UnsatCoreFunction. apply(MiniSat solver, Consumer<Tristate> resultSetter)SortedSet<Literal>UpZeroLiteralsFunction. apply(MiniSat solver, Consumer<Tristate> resultSetter) -
Uses of Tristate in org.logicng.solvers.maxsat.algorithms
Methods in org.logicng.solvers.maxsat.algorithms that return Tristate Modifier and Type Method Description static TristateMaxSAT. searchSATSolver(MiniSatStyleSolver s, SATHandler satHandler)Solves the formula without assumptions.static TristateMaxSAT. searchSATSolver(MiniSatStyleSolver s, SATHandler satHandler, LNGIntVector assumptions)Solves the formula that is currently loaded in the SAT solver with a set of assumptions. -
Uses of Tristate in org.logicng.solvers.sat
Fields in org.logicng.solvers.sat with type parameters of type Tristate Modifier and Type Field Description protected HashMap<Integer,Tristate>MiniSatStyleSolver. backboneMapMethods in org.logicng.solvers.sat that return Tristate Modifier and Type Method Description protected TristateGlucoseSyrup. search()The main search procedure of the CDCL algorithm.protected TristateMiniCard. search(int nofConflicts)The main search procedure of the CDCL algorithm.protected TristateMiniSat2Solver. search(int nofConflicts)The main search procedure of the CDCL algorithm.TristateGlucoseSyrup. solve(SATHandler handler)TristateMiniCard. solve(SATHandler handler)TristateMiniSat2Solver. solve(SATHandler handler)abstract TristateMiniSatStyleSolver. solve(SATHandler handler)Solves the formula currently stored in the solver.TristateMiniSatStyleSolver. solve(SATHandler handler, LNGIntVector assumptions)Solves the formula currently stored in the solver together with the given assumption literals.protected TristateMiniSatStyleSolver. value(int lit)Returns the assigned value of a given literal. -
Uses of Tristate in org.logicng.transformations.qmc
Fields in org.logicng.transformations.qmc declared as Tristate Modifier and Type Field Description protected Tristate[]Term. bitsMethods in org.logicng.transformations.qmc with parameters of type Tristate Modifier and Type Method Description protected longTerm. computeUndefNum(Tristate[] bits)Computes a number representing the number and position of the UNDEF states in the bit array.protected intTerm. countNonNegativeBits(Tristate[] bits)Counts the number of non-negative bits of a given tristate vector.protected StringTermTable. formatBits(Tristate[] bits)
-