Interface CellCalculator


  • public interface CellCalculator

    The interface for all functions that can calculate the 'scores' array for a given cell.

    The methods in this interface work on a square matrix of cells. The cell at 0,0 is considered the 'target' cell to which data can be written. The other cells are the neighbours to this cell in the DP matrix.

    Since:
    1.2
    Author:
    Matthew Pocock
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void calcCell​(Cell[][] cells)
      Calculate the 'scores' array in the cell at cells[0][0].
      void initialize​(Cell[][] cells)
      Initialize the cell at [0][0] to the recursion initial parameters.