com.holub.life
Interface Cell.Memento

All Superinterfaces:
Storable
Enclosing interface:
Cell

public static interface Cell.Memento
extends Storable

The Cell.Memento interface stores the state of a Cell and all its subcells for future restoration.

See Also:
Cell

Method Summary
 boolean isAlive(Point location)
          On restoration of a cell from a memento, indicate that a cell is alive.
 void markAsAlive(Point location)
          On creation of the memento, indicate that a cell is alive.
 
Methods inherited from interface com.holub.life.Storable
flush, load
 

Method Detail

markAsAlive

void markAsAlive(Point location)
On creation of the memento, indicate that a cell is alive.


isAlive

boolean isAlive(Point location)
On restoration of a cell from a memento, indicate that a cell is alive.