public class DotSearchTracing<T> extends SearchListenerAdapter<ISolverService>
Constructor and Description |
---|
DotSearchTracing(String fileNameToSave,
Map<Integer,T> mapping) |
Modifier and Type | Method and Description |
---|---|
void |
adding(int p)
adding forced variable (conflict driven assignment)
|
void |
assuming(int p)
decision variable
|
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 clause)
learning a new clause
|
void |
propagating(int p,
IConstr reason)
Unit propagation
|
void |
solutionFound(int[] model,
RandomAccessModel lazyModel)
a solution is found.
|
void |
start()
Start the search.
|
backjump, cleaning, init, restarting
public final void assuming(int p)
SearchListener
assuming
in interface SearchListener<ISolverService>
assuming
in class SearchListenerAdapter<ISolverService>
public final void propagating(int p, IConstr reason)
SearchListener
propagating
in interface SearchListener<ISolverService>
propagating
in class SearchListenerAdapter<ISolverService>
reason
- TODOpublic final void backtracking(int p)
SearchListener
backtracking
in interface SearchListener<ISolverService>
backtracking
in class SearchListenerAdapter<ISolverService>
public final void adding(int p)
SearchListener
adding
in interface SearchListener<ISolverService>
adding
in class SearchListenerAdapter<ISolverService>
public final void learn(IConstr clause)
SearchListener
learn
in interface SearchListener<ISolverService>
learn
in class SearchListenerAdapter<ISolverService>
public final void delete(int[] clause)
SearchListener
delete
in interface SearchListener<ISolverService>
delete
in class SearchListenerAdapter<ISolverService>
public final void conflictFound(IConstr confl, int dlevel, int trailLevel)
SearchListener
conflictFound
in interface SearchListener<ISolverService>
conflictFound
in class SearchListenerAdapter<ISolverService>
confl
- TODOdlevel
- TODOtrailLevel
- TODOpublic final void conflictFound(int p)
SearchListener
conflictFound
in interface SearchListener<ISolverService>
conflictFound
in class SearchListenerAdapter<ISolverService>
p
- the conflicting value.public final void solutionFound(int[] model, RandomAccessModel lazyModel)
SearchListener
solutionFound
in interface SearchListener<ISolverService>
solutionFound
in class SearchListenerAdapter<ISolverService>
model
- the model foundlazyModel
- TODOpublic final void beginLoop()
SearchListener
beginLoop
in interface SearchListener<ISolverService>
beginLoop
in class SearchListenerAdapter<ISolverService>
public final void start()
SearchListener
start
in interface SearchListener<ISolverService>
start
in class SearchListenerAdapter<ISolverService>
public final void end(Lbool result)
SearchListener
end
in interface SearchListener<ISolverService>
end
in class SearchListenerAdapter<ISolverService>
result
- the result of the search.Copyright © 2013 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.