fr.jussieu.gla.wasa.samples.queens
Class Queen

java.lang.Object
  |
  +--fr.jussieu.gla.wasa.samples.queens.Queen

public class Queen
extends java.lang.Object

A Queen in the n-queens problem.

Version:
$Revision: 1.9 $ $Date: 2002/04/17 15:24:08 $
Author:
Florent Selva, Laurent Caillette

Constructor Summary
Queen(int line, int column)
           
 
Method Summary
 int getColumn()
          Returns the current column of the Queen.
 int getLine()
          Returns the current line of the Queen.
 void setColumn(int column)
          Sets the current column of the Queen.
 void setLine(int line)
          Sets the current line of the Queen.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Queen

public Queen(int line,
             int column)
Method Detail

setLine

public void setLine(int line)
Sets the current line of the Queen.

getLine

public int getLine()
Returns the current line of the Queen.
Returns:
the current line of the Queen.

setColumn

public void setColumn(int column)
Sets the current column of the Queen.

getColumn

public int getColumn()
Returns the current column of the Queen.
Returns:
the current column of the Queen.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object