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 CellGrid
public int getNumberOfColumns()
getNumberOfColumns
in interface CellGrid
public boolean nextGeneration()
nextGeneration
in interface CellGrid
public void setPattern(ConwayPattern pattern)
setPattern
in interface CellGrid
public void updateCell(Cell cell, CellState state)
updateCell
in interface CellGrid
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.