Class Model

All Implemented Interfaces:
Domain, ModelEntity

public class Model extends BasicDomain
  • Constructor Details

    • Model

      public Model(int w, int h)
  • Method Details

    • createCells

      public void createCells(double lifeProbability)
    • connectCells

      public void connectCells()
    • getCell

      public Cell getCell(int x, int y)
    • getName

      public String getName()
      Description copied from interface: ModelEntity
      Returns the name of this model entity

      Returns an empty string as default, may be overridden in derived classes.

      Specified by:
      getName in interface ModelEntity
      Overrides:
      getName in class BasicModelEntity
      Returns:
      the name of this model entity, may be an empty string but not null