|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttasks.Cell
public class Cell
Constructor Summary | |
---|---|
Cell(int x,
int y,
int size)
The constructor to be called by the Board when a single Cell is created for the grid. |
Method Summary | |
---|---|
int[] |
getPossibleValues()
Get all the possible values for the cell. |
int |
getValue()
Get the value in the cell. |
int |
getX()
Get the row coordinate of the cell. |
int |
getY()
Get the column coordinate of the cell. |
boolean |
removeValue(int value)
Remove the value as being a possibility for the current cell |
void |
setValue(int value)
Sets the value at this cell. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Cell(int x, int y, int size)
x
- The row coordinate.y
- The column coordinate.size
- The number of possible values the cell can take.Method Detail |
---|
public int getX()
public int getY()
public int getValue()
public int[] getPossibleValues()
public boolean removeValue(int value)
value
- The possible value to remove.
public void setValue(int value)
value
- The value to set the cell with.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |