org.sat4j.tools
Class ConflictLevelTracing

java.lang.Object
  extended by org.sat4j.tools.ConflictLevelTracing
All Implemented Interfaces:
Serializable, SearchListener

public class ConflictLevelTracing
extends Object
implements SearchListener

Since:
2.2
See Also:
Serialized Form

Constructor Summary
ConflictLevelTracing(String filename)
           
 
Method Summary
 void adding(int p)
          adding forced variable (conflict driven assignment)
 void assuming(int p)
          decision variable
 void backjump(int backjumpLevel)
          The solver is asked to backjump to a given decision level.
 void backtracking(int p)
          backtrack on a decision variable
 void beginLoop()
          starts a propagation
 void conflictFound(IConstr confl, int dlevel, int trailLevel)
          a conflict has been found.
 void conflictFound(int p)
          a conflict has been found while propagating values.
 void delete(int[] clause)
          delete a clause
 void end(Lbool result)
          End the search.
 void learn(IConstr c)
          learning a new clause
 void propagating(int p, IConstr reason)
          Unit propagation
 void restarting()
          The solver restarts the search.
 void solutionFound()
          a solution is found.
 void start()
          Start the search.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConflictLevelTracing

public ConflictLevelTracing(String filename)
Method Detail

adding

public void adding(int p)
Description copied from interface: SearchListener
adding forced variable (conflict driven assignment)

Specified by:
adding in interface SearchListener

assuming

public void assuming(int p)
Description copied from interface: SearchListener
decision variable

Specified by:
assuming in interface SearchListener

backtracking

public void backtracking(int p)
Description copied from interface: SearchListener
backtrack on a decision variable

Specified by:
backtracking in interface SearchListener

beginLoop

public void beginLoop()
Description copied from interface: SearchListener
starts a propagation

Specified by:
beginLoop in interface SearchListener

conflictFound

public void conflictFound(IConstr confl,
                          int dlevel,
                          int trailLevel)
Description copied from interface: SearchListener
a conflict has been found.

Specified by:
conflictFound in interface SearchListener
Parameters:
confl - TODO
dlevel - TODO
trailLevel - TODO

conflictFound

public void conflictFound(int p)
Description copied from interface: SearchListener
a conflict has been found while propagating values.

Specified by:
conflictFound in interface SearchListener
Parameters:
p - the conflicting value.

delete

public void delete(int[] clause)
Description copied from interface: SearchListener
delete a clause

Specified by:
delete in interface SearchListener

end

public void end(Lbool result)
Description copied from interface: SearchListener
End the search.

Specified by:
end in interface SearchListener
Parameters:
result - the result of the search.

learn

public void learn(IConstr c)
Description copied from interface: SearchListener
learning a new clause

Specified by:
learn in interface SearchListener

propagating

public void propagating(int p,
                        IConstr reason)
Description copied from interface: SearchListener
Unit propagation

Specified by:
propagating in interface SearchListener
reason - TODO

solutionFound

public void solutionFound()
Description copied from interface: SearchListener
a solution is found.

Specified by:
solutionFound in interface SearchListener

start

public void start()
Description copied from interface: SearchListener
Start the search.

Specified by:
start in interface SearchListener

restarting

public void restarting()
Description copied from interface: SearchListener
The solver restarts the search.

Specified by:
restarting in interface SearchListener

backjump

public void backjump(int backjumpLevel)
Description copied from interface: SearchListener
The solver is asked to backjump to a given decision level.

Specified by:
backjump in interface SearchListener


Copyright © 2011 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.