org.objectweb.proactive.calcium.examples.nqueens.bt1
Class BoardBT1

java.lang.Object
  extended by org.objectweb.proactive.calcium.examples.nqueens.Board
      extended by org.objectweb.proactive.calcium.examples.nqueens.bt1.BoardBT1
All Implemented Interfaces:
java.io.Serializable

public class BoardBT1
extends Board

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.proactive.calcium.examples.nqueens.Board
board, bound1, column, down, left, mask, n, right, row, solutions, solvableSize, topbit
 
Constructor Summary
BoardBT1(int n, int solvableSize, int row, int left, int down, int right, int bound1, int[] board)
          Constructor for backtrac1 boards
 
Method Summary
 boolean isBT1()
           
 boolean isRootBoard()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoardBT1

public BoardBT1(int n,
                int solvableSize,
                int row,
                int left,
                int down,
                int right,
                int bound1,
                int[] board)
Constructor for backtrac1 boards

Parameters:
n - Size of the board
fila - Profundidad del arbol de busqueda.
left - Diagonales ocupadas que crecen a la izquierda.
down - Columnas ocupadas.
right - Diagonales ocupadas que crecen a la derecha.
bound1 - Columna de la fila 1 para la cual se esta calculando.
board - Arreglo con el tablero generado hasta la posicion fila-1.
Method Detail

isBT1

public boolean isBT1()
Overrides:
isBT1 in class Board

isRootBoard

public boolean isRootBoard()
Overrides:
isRootBoard in class Board


Copyright 2001-2007 INRIA All Rights Reserved.