Package org.drools.examples.conway
Class CellGridImpl
- java.lang.Object
-
- org.drools.examples.conway.CellGridImpl
-
-
Constructor Summary
Constructors Constructor Description CellGridImpl(int rows, int columns, int executionControl)Constructs a CellGrid
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()CellgetCellAt(int row, int column)intgetNumberOfColumns()intgetNumberOfRows()voidkillAll()booleannextGeneration()voidsetPattern(ConwayPattern pattern)StringtoString()voidupdateCell(Cell cell, CellState state)
-
-
-
Method Detail
-
getNumberOfRows
public int getNumberOfRows()
- Specified by:
getNumberOfRowsin interfaceCellGrid
-
getNumberOfColumns
public int getNumberOfColumns()
- Specified by:
getNumberOfColumnsin interfaceCellGrid
-
nextGeneration
public boolean nextGeneration()
- Specified by:
nextGenerationin interfaceCellGrid
-
setPattern
public void setPattern(ConwayPattern pattern)
- Specified by:
setPatternin interfaceCellGrid
-
updateCell
public void updateCell(Cell cell, CellState state)
- Specified by:
updateCellin interfaceCellGrid
-
-