org.drools.examples.conway.patterns
Interface ConwayPattern

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
Border, Hi, Pentadecathalon, Pulsar, SimpleGlider

public interface ConwayPattern
extends java.io.Serializable

A ConwayPattern describes the state of a conway grid. ConwayPattern objects are useful for persisting grid states for recall later.

 

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
 java.lang.String getPatternName()
           
 

Method Detail

getPattern

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

Returns:
array representing a conway grid

getPatternName

java.lang.String getPatternName()
Returns:
the name of this pattern