Class UniformCellSelector

    • Constructor Detail

      • UniformCellSelector

        public UniformCellSelector​(ModelElement parent)
      • UniformCellSelector

        public UniformCellSelector​(ModelElement parent,
                                   java.lang.String name)
    • Method Detail

      • randInt

        public final int randInt​(int i,
                                 int j)
        Randomly generates an integer between i and j
        Parameters:
        i - the lower limit
        j - the upper limit
        Returns:
        the random integer
      • selectCell

        public RectangularCell2D selectCell​(java.util.List<RectangularCell2D> cells)
        Description copied from interface: RectangularCell2DSelectorIfc
        A method for selecting cells from a list of cells. If cells is null, an IllegalArgumentException is thrown If cells is empty an IllegalStateException is thrown If the returned cell is to be null, an IllegalStateException is thrown
        Specified by:
        selectCell in interface RectangularCell2DSelectorIfc
        Parameters:
        cells - the cells to select from
        Returns:
        the selected cell