org.drools.examples.conway.patterns
Interface ConwayPattern

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

public interface ConwayPattern
extends 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
 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

String getPatternName()
Returns:
the name of this pattern


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.