Interface RectangularCell2DSelectorIfc

  • All Known Implementing Classes:
    UniformCellSelector

    public interface RectangularCell2DSelectorIfc
    An interface to define a general pattern of selecting a cell from a list of cells. The list of cells should not contain null as an element.
    • Method Detail

      • selectCell

        RectangularCell2D selectCell​(java.util.List<RectangularCell2D> cells)
        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
        Parameters:
        cells - the cells to select from
        Returns:
        the selected cell