Class CellMatrix.Cell

java.lang.Object
org.todo.gameOfLife.CellMatrix.Cell
All Implemented Interfaces:
java.lang.Cloneable
Enclosing class:
CellMatrix

protected class CellMatrix.Cell
extends java.lang.Object
implements java.lang.Cloneable
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private boolean alive  
    private int liveNeighbors  
    private int matrixPosition  
  • Constructor Summary

    Constructors 
    Constructor Description
    Cell()  
    Cell​(boolean alive)  
  • Method Summary

    Modifier and Type Method Description
    CellMatrix.Cell clone()  
    boolean isAlive()  
    boolean isDead()  
    void setAlive()  
    void setDead()  
    void setState​(boolean alive)  

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait