Interface ConwayPattern
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
Border,Hi,Pentadecathalon,Pulsar,SimpleGlider
public interface ConwayPattern extends Serializable
AConwayPatterndescribes the state of a conway grid.ConwayPatternobjects are useful for persisting grid states for recall later.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean[][]getPattern()This method should return a 2 dimensional array of boolean that represent a conway grid, withtruevalues in the positions where cells are aliveStringgetPatternName()
-
-
-
Method Detail
-
getPattern
boolean[][] getPattern()
This method should return a 2 dimensional array of boolean that represent a conway grid, withtruevalues in the positions where cells are alive- Returns:
- array representing a conway grid
-
getPatternName
String getPatternName()
- Returns:
- the name of this pattern
-
-