org.drools.examples.conway.patterns
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
|
Method Summary |
boolean[][] |
getPattern()
This method should return a 2 dimensional array of boolean that represent
a conway grid, with true values in the positions where
cells are alive |
String |
getPatternName()
|
String |
toString()
|
Hi
public Hi()
getPattern
public boolean[][] getPattern()
- This method should return a 2 dimensional array of boolean that represent
a conway grid, with
true values in the positions where
cells are alive
- Specified by:
getPattern in interface ConwayPattern
- Returns:
- array representing a conway grid
getPatternName
public String getPatternName()
- Specified by:
getPatternName in interface ConwayPattern
- Returns:
- the name of this pattern
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.