Package net.sf.okapi.steps.gcaligner
Class DpMatrixCell
- java.lang.Object
-
- net.sf.okapi.steps.gcaligner.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.
-
-
Field Summary
Fields Modifier and Type Field Description static intDELETEDstatic intINSERTEDstatic intMATCHstatic intMULTI_MATCHstatic intNO_STATE
-
Constructor Summary
Constructors Constructor Description DpMatrixCell(int p_xPos, int p_yPos)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMultiMatchXIndexBegin()Return start index (inclusive) of X axis of the matrix for the multiple match.intgetMultiMatchXIndexEnd()Return end index (exclusive) of X axis of the matrix for the multiple match.intgetMultiMatchYIndexBegin()Return start index (inclusive) of Y axis of the matrix for the multiple match.intgetMultiMatchYIndexEnd()Return end index (exclusive) of Y axis of the matrix for the multiple match.intgetScore()intgetState()intgetXindex()intgetYindex()booleanhasNext()DpMatrixCellnextCell()voidsetScoreAndLink(int p_score, DpMatrixCell p_backLink)StringtoString()
-
-
-
Field Detail
-
DELETED
public static final int DELETED
- See Also:
- Constant Field Values
-
INSERTED
public static final int INSERTED
- See Also:
- Constant Field Values
-
MATCH
public static final int MATCH
- See Also:
- Constant Field Values
-
MULTI_MATCH
public static final int MULTI_MATCH
- See Also:
- Constant Field Values
-
NO_STATE
public static final int NO_STATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
nextCell
public DpMatrixCell nextCell()
-
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)
-
-