Module logicng

Class MSWatcher


  • public final class MSWatcher
    extends Object
    A watcher for clauses for MiniSAT-style solvers.
    Since:
    1.0
    Version:
    1.0.1
    • Constructor Detail

      • MSWatcher

        public MSWatcher​(MSClause clause,
                         int blocker)
        Constructs a new watcher.
        Parameters:
        clause - the watched clause
        blocker - 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object