Class Hi
- java.lang.Object
-
- org.drools.examples.conway.patterns.Hi
-
- All Implemented Interfaces:
Serializable,ConwayPattern
public class Hi extends Object implements ConwayPattern
The Hi pattern- See Also:
ConwayPattern,CellGridImpl, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Hi()
-
Method Summary
All Methods Instance Methods Concrete 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()StringtoString()
-
-
-
Method Detail
-
getPattern
public 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- Specified by:
getPatternin interfaceConwayPattern- Returns:
- array representing a conway grid
-
getPatternName
public String getPatternName()
- Specified by:
getPatternNamein interfaceConwayPattern- Returns:
- the name of this pattern
-
-