Class Grid


  • public class Grid
    extends Object
    A Grid formed by cells. The grid has width and height in meters. The cellSize size is the size of the cells in m^2
    • Constructor Detail

      • Grid

        public Grid​(int width,
                    int height,
                    int cellSize,
                    int maxValue,
                    List<IntegerCell> cells)
    • Method Detail

      • getWidth

        public int getWidth()
        Return the width (in meters)
      • getHeight

        public int getHeight()
        Return the height (in meters)
      • getCellSize

        public int getCellSize()
        Return the cell size (in square meters)
      • getMaxValue

        public int getMaxValue()
        Return the max value of the cells of the grid