| Constructor and Description |
|---|
CellGridImpl(int rows,
int columns,
int executionControl)
Constructs a CellGrid
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
Cell |
getCellAt(int row,
int column) |
int |
getNumberOfColumns() |
int |
getNumberOfRows() |
void |
killAll() |
boolean |
nextGeneration() |
void |
setPattern(ConwayPattern pattern) |
String |
toString() |
void |
updateCell(Cell cell,
CellState state) |
public CellGridImpl(int rows,
int columns,
int executionControl)
rows - number of rows in the gridcolumns - number of columns in the gridpublic int getNumberOfRows()
getNumberOfRows in interface CellGridpublic int getNumberOfColumns()
getNumberOfColumns in interface CellGridpublic boolean nextGeneration()
nextGeneration in interface CellGridpublic void setPattern(ConwayPattern pattern)
setPattern in interface CellGridpublic void updateCell(Cell cell, CellState state)
updateCell in interface CellGridCopyright © 2001–2020 JBoss by Red Hat. All rights reserved.