Class Cell

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

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

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

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

    Modifier and Type Method Description
    Cell clone()  
    int getMatrixPosition()  
    boolean isAlive()  
    boolean isDead()  
    void setAlive()  
    void setDead()  
    void setMatrixPosition​(int position)  
    void setState​(boolean alive)  

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Cell

      public Cell()
    • Cell

      public Cell​(boolean alive)
  • Method Details