public class MultiTracing<T extends ISolverService> extends Object implements SearchListener<T>
Constructor and Description |
---|
MultiTracing(List<SearchListener<T>> listenersList) |
MultiTracing(SearchListener<T>... listeners) |
Modifier and Type | Method and Description |
---|---|
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 |
cleaning()
The solver is going to delete some learned clauses.
|
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 |
init(T solverService)
Provide access to the solver's controllable interface.
|
void |
learn(IConstr c)
learning a new clause
|
void |
learnUnit(int p)
learn a new unit clause (a literal)
|
void |
propagating(int p,
IConstr reason)
Unit propagation
|
void |
restarting()
The solver restarts the search.
|
void |
solutionFound(int[] model,
RandomAccessModel lazyModel)
a solution is found.
|
void |
start()
Start the search.
|
public MultiTracing(SearchListener<T>... listeners)
public MultiTracing(List<SearchListener<T>> listenersList)
public void assuming(int p)
SearchListener
assuming
in interface SearchListener<T extends ISolverService>
public void propagating(int p, IConstr reason)
SearchListener
propagating
in interface SearchListener<T extends ISolverService>
reason
- TODOpublic void backtracking(int p)
SearchListener
backtracking
in interface SearchListener<T extends ISolverService>
public void adding(int p)
SearchListener
adding
in interface SearchListener<T extends ISolverService>
public void learn(IConstr c)
SearchListener
learn
in interface SearchListener<T extends ISolverService>
public void learnUnit(int p)
SearchListener
learnUnit
in interface SearchListener<T extends ISolverService>
p
- a literal in Dimacs format.public void delete(int[] clause)
SearchListener
delete
in interface SearchListener<T extends ISolverService>
public void conflictFound(IConstr confl, int dlevel, int trailLevel)
SearchListener
conflictFound
in interface SearchListener<T extends ISolverService>
confl
- TODOdlevel
- TODOtrailLevel
- TODOpublic void conflictFound(int p)
SearchListener
conflictFound
in interface SearchListener<T extends ISolverService>
p
- the conflicting value.public void solutionFound(int[] model, RandomAccessModel lazyModel)
SearchListener
solutionFound
in interface SearchListener<T extends ISolverService>
model
- the model foundlazyModel
- TODOpublic void beginLoop()
SearchListener
beginLoop
in interface SearchListener<T extends ISolverService>
public void start()
SearchListener
start
in interface SearchListener<T extends ISolverService>
public void end(Lbool result)
SearchListener
end
in interface SearchListener<T extends ISolverService>
result
- the result of the search.public void restarting()
SearchListener
restarting
in interface SearchListener<T extends ISolverService>
public void backjump(int backjumpLevel)
SearchListener
backjump
in interface SearchListener<T extends ISolverService>
public void init(T solverService)
SearchListener
init
in interface SearchListener<T extends ISolverService>
solverService
- a way to safely control the solver.public void cleaning()
SearchListener
cleaning
in interface SearchListener<T extends ISolverService>
Copyright © 2013 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.