Uses of Class
eu.bandm.tools.dpll.Literal
Packages that use Literal
Package
Description
Model and solver for propositional logic in conjunctive normal form.
-
Uses of Literal in eu.bandm.tools.dpll
Methods in eu.bandm.tools.dpll that return LiteralModifier and TypeMethodDescriptionSATSolver.State.choose()Chooses a literal to resolve.Clause.getUnit()Extract the unit literal if appropriate.Literal.negate()Return the negation of this literal.static <P> Literal<P> Literal.negative(P variable) Creates a new negative instance.static <P> Literal<P> Literal.positive(P variable) Creates a new positive instance.Methods in eu.bandm.tools.dpll that return types with arguments of type LiteralModifier and TypeMethodDescriptionSATSolver.findSolution(Formula<P> form) Solves a formula.Formula.literals()View literals occurring in this formula.Formula.pure()Returns the set of all literals occuring purely in this formula.Finds the propositional variables occurring purely in some literals.Methods in eu.bandm.tools.dpll with parameters of type LiteralModifier and TypeMethodDescriptionprotected voidChanges this state by committing to a literal.Returns a simplified clause that is equivalent to this clause assuming the given literal.Returns a formula that abstracts from the given literal in this formula.static <P> Clause<P> Returns a clause containing the given literals.static <P> Clause<P> Returns a unitary clause containing the given literal.Returns a formula that prepends a unit clause to this formula.protected SATSolver.State<P> Creates a copy of this state with a given unit clause added to the formula.Method parameters in eu.bandm.tools.dpll with type arguments of type LiteralModifier and TypeMethodDescriptionstatic <P> booleanLiteral.isConsistent(Collection<Literal<P>> literals) Checks whether the given literals are consistent.booleanClause.isSatisfiedBy(Set<Literal<P>> solution) Checks whether this proposition is satisfied by a given solution.booleanFormula.isSatisfiedBy(Set<Literal<P>> solution) Checks whether this proposition is satisfied by a given solution.booleanLiteral.isSatisfiedBy(Set<Literal<P>> solution) Checks whether this proposition is satisfied by a given solution.booleanProposition.isSatisfiedBy(Set<Literal<P>> solution) Checks whether this proposition is satisfied by a given solution.static <P> Clause<P> Returns a clause containing the given literals.Finds the propositional variables occurring purely in some literals.