public interface BackjumpListener extends SolverComponent
Modifier and Type | Method and Description |
---|---|
void |
onBackjump(int oldLevel,
int newLevel)
Called when the solver backtracks.
|
void |
onRestart(int oldLevel)
called when the solver restarts.
|
initialize
void onBackjump(int oldLevel, int newLevel)
components that want to be warned about backjumps should put themselves in Core.backjumpModules.
oldLevel
- the level at which the solver was before backtrackingnewLevel
- the level to which the solver backtracksvoid onRestart(int oldLevel)
components that want to be warned about restarts should put themselves in Core.restartModules.
oldLevel
- the level at which the solver was before restartingCopyright © 2022. All rights reserved.