Class Grid


  • public class Grid
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      Grid​(int width, int height, int cellSize, int maxValue, java.util.List<IntegerCell> cells)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<IntegerCell> getCells()
      Return all the cells
      int getCellSize()
      Return the cell size (in square meters)
      int getHeight()
      Return the height (in meters)
      int getMaxValue()
      Return the max value of the cells of the grid
      int getWidth()
      Return the width (in meters)
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Grid

        public Grid​(int width,
                    int height,
                    int cellSize,
                    int maxValue,
                    java.util.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
      • getCells

        public java.util.List<IntegerCell> getCells()
        Return all the cells