Package nqueens.lab

Class ParallelNQueens

java.lang.Object
nqueens.lab.ParallelNQueens

public class ParallelNQueens
extends java.lang.Object
Author:
__STUDENT_NAME__, Dennis Cosgrove (http://www.cse.wustl.edu/~cosgroved/)
  • Constructor Summary

    Constructors 
    Constructor Description
    ParallelNQueens()  
  • Method Summary

    Modifier and Type Method Description
    static int countSolutions​(ImmutableQueenLocations queenLocations, RowSearchAlgorithm rowSearchAlgorithm)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • countSolutions

      public static int countSolutions​(ImmutableQueenLocations queenLocations, RowSearchAlgorithm rowSearchAlgorithm) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
      Parameters:
      queenLocations - A chess board to count the solutions.
      Returns:
      The number of solutions found.
      Throws:
      java.lang.InterruptedException - if the computation was cancelled
      java.util.concurrent.ExecutionException - if the computation threw an exception