public class Grid extends Object
| Constructor and Description |
|---|
Grid(int size)
Constructs a new grid.
|
| Modifier and Type | Method and Description |
|---|---|
static Grid |
createInstance(int size)
Returns the grid with the desired size.
|
int |
getBitStringLength() |
BitSet |
getSignature(int x,
int y)
Returns the signature of a given field of the grid.
|
void |
setCell(int x,
int y,
BitSet bitSet)
Sets the signature of a field.
|
String |
toString() |
public Grid(int size)
size - the size of the grid (size*size).public int getBitStringLength()
public BitSet getSignature(int x, int y)
x - the x coordinate.y - the y coordinate.public void setCell(int x,
int y,
BitSet bitSet)
x - the x coordinate.y - the y coordinate.bitSet - the signature of the field.public static Grid createInstance(int size)
size - the size of the grid to be returned.Copyright © 2007-2012 Global Information Systems Group, ETH Zurich. All Rights Reserved.