org.univ.paris5.GameOfLife
Class Shape

java.lang.Object
  extended by org.univ.paris5.GameOfLife.Shape

public class Shape
extends java.lang.Object

Shape contains data of one (predefined) shape.


Constructor Summary
Shape(java.lang.String name, java.util.Hashtable shape, Algorithm algorithm)
          Constructa a Shape.
 
Method Summary
 Algorithm getAlgoritm()
          Get the algoritm with this shap.
 java.util.Hashtable getCells()
          Get shape data.
 java.lang.String getName()
          Get name of shape.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Shape

public Shape(java.lang.String name,
             java.util.Hashtable shape,
             Algorithm algorithm)
Constructa a Shape.

Parameters:
name - name of shape
shape - shape data
algoritm - algoritm for the shape
Method Detail

getName

public java.lang.String getName()
Get name of shape.

Returns:
name of shape

getCells

public java.util.Hashtable getCells()
Get shape data. Hide the shape implementation. Returns a anonymous Enumerator object.

Returns:
enumerated shape data

getAlgoritm

public Algorithm getAlgoritm()
Get the algoritm with this shap.

Returns:
algoritm shape data