protected abstract static class SAT.Clause<P> extends AbstractCollection<SAT.Literal<? extends P>>
Literals are accessible via the unmodifiable collection interface.
Modifier | Constructor and Description |
---|---|
protected |
Clause() |
Modifier and Type | Method and Description |
---|---|
abstract SAT.Literal<? extends P> |
getUnit()
Extract unit literal.
|
abstract boolean |
isFalse()
Check whether this clause is unsatisfiable.
|
abstract boolean |
isTrue()
Check whether this clause is tautological.
|
abstract boolean |
isUnit()
Check whether this clause is unitary.
|
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode, parallelStream, removeIf, spliterator, stream
public abstract boolean isTrue()
true
if this clause is true under all
interpretations; false
otherwise.public abstract boolean isFalse()
true
if this clause is false under all
interpretations; false
otherwise.public abstract boolean isUnit()
true
if this clause contains exactly one
literal; false
otherwise.public abstract SAT.Literal<? extends P> getUnit()
null
otherwise.see also the complete user documentation .