@@ -195,7 +195,7 @@ private List<BooleanFormula> getAssignments(S symbols, Integer[][] grid) {
195195 /** convert one user-given value at given coordinate into a constraint for the solver. */
196196 abstract BooleanFormula getAssignment (S symbols , int row , int col , Integer value );
197197
198- abstract Integer getValue (S symbols , Model model , int row , int col );
198+ abstract Integer getValue (S symbols , Model model , int row , int col ) throws InterruptedException ;
199199
200200 /**
201201 * Solves a sudoku using the given grid values and returns a possible solution. Return <code>
@@ -314,7 +314,8 @@ BooleanFormula getAssignment(IntegerFormula[][] symbols, int row, int col, Integ
314314 }
315315
316316 @ Override
317- Integer getValue (IntegerFormula [][] symbols , Model model , int row , int col ) {
317+ Integer getValue (IntegerFormula [][] symbols , Model model , int row , int col )
318+ throws InterruptedException {
318319 return model .evaluate (symbols [row ][col ]).intValue ();
319320 }
320321 }
@@ -413,7 +414,8 @@ BooleanFormula getAssignment(BooleanFormula[][][] symbols, int row, int col, Int
413414 }
414415
415416 @ Override
416- Integer getValue (BooleanFormula [][][] symbols , Model model , int row , int col ) {
417+ Integer getValue (BooleanFormula [][][] symbols , Model model , int row , int col )
418+ throws InterruptedException {
417419 for (int value = 0 ; value < SIZE ; value ++) {
418420 if (model .evaluate (symbols [row ][col ][value ])) {
419421 return value + 1 ; // off-by-one!
@@ -516,7 +518,8 @@ BooleanFormula getAssignment(EnumerationFormula[][] symbols, int row, int col, I
516518 }
517519
518520 @ Override
519- Integer getValue (EnumerationFormula [][] symbols , Model model , int row , int col ) {
521+ Integer getValue (EnumerationFormula [][] symbols , Model model , int row , int col )
522+ throws InterruptedException {
520523 String value = model .evaluate (symbols [row ][col ]);
521524 for (int i = 0 ; i < VALUES .length ; i ++) {
522525 if (VALUES [i ].equals (value )) {
0 commit comments