- java.lang.Object
-
- org.logicng.solvers.datastructures.MSWatcher
-
public final class MSWatcher extends Object
A watcher for clauses for MiniSAT-style solvers.- Since:
- 1.0
- Version:
- 1.0.1
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intblocker()Returns the blocking literal of this watcher.MSClauseclause()Returns the watched clause of this watcher.booleanequals(Object other)inthashCode()StringtoString()
-
-
-
Constructor Detail
-
MSWatcher
public MSWatcher(MSClause clause, int blocker)
Constructs a new watcher.- Parameters:
clause- the watched clauseblocker- the blocking literal
-
-
Method Detail
-
blocker
public int blocker()
Returns the blocking literal of this watcher.- Returns:
- the blocking literal of this watcher
-
clause
public MSClause clause()
Returns the watched clause of this watcher.- Returns:
- the watched clause of this watcher
-
-