Class DpMatrixCell


  • public class DpMatrixCell
    extends Object
    DpMatrixCell is a cell of DpMatrix. It records the score of the cell, the state of the cell (match, insertion or subtraction), the possible path(s) to the upper left corner of the matrix. The cell supports 1:n and n:m matches, too.
    • Constructor Detail

      • DpMatrixCell

        public DpMatrixCell​(int p_xPos,
                            int p_yPos)
    • Method Detail

      • hasNext

        public boolean hasNext()
      • getXindex

        public int getXindex()
      • getYindex

        public int getYindex()
      • getScore

        public int getScore()
      • getState

        public int getState()
      • getMultiMatchXIndexBegin

        public int getMultiMatchXIndexBegin()
        Return start index (inclusive) of X axis of the matrix for the multiple match. The return value can be used in DpMatrix#getAlignmentElementsX() method. This should be called only when the state is MULTI_MATCH.
      • getMultiMatchYIndexBegin

        public int getMultiMatchYIndexBegin()
        Return start index (inclusive) of Y axis of the matrix for the multiple match. The return value can be used in DpMatrix#getAlignmentElementsY() method. This should be called only when the state is MULTI_MATCH.
      • getMultiMatchXIndexEnd

        public int getMultiMatchXIndexEnd()
        Return end index (exclusive) of X axis of the matrix for the multiple match. The return value can be used in DpMatrix#getAlignmentElementsX() method. This should be called only when the state is MULTI_MATCH.
      • getMultiMatchYIndexEnd

        public int getMultiMatchYIndexEnd()
        Return end index (exclusive) of Y axis of the matrix for the multiple match. The return value can be used in DpMatrix#getAlignmentElementsX() method. This should be called only when the state is MULTI_MATCH.
      • setScoreAndLink

        public void setScoreAndLink​(int p_score,
                                    DpMatrixCell p_backLink)