Package org.biojava.bio.dp.onehead
Interface DPCursor
-
- All Known Implementing Classes:
SmallCursor
public interface DPCursor
Encapsulates the dynamic programmming matrix, and the context within algorithms work. The cursor should put DP.MAGICAL_SYMBOL symbols at either end of the sequence.- Author:
- Matthew Pocock
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadvance()Advance.booleancanAdvance()Can we advance?double[]currentCol()The current column of the matrix.SymbolcurrentRes()The current symbol.double[]lastCol()The previous column.SymbollastRes()The previous symbol.intlength()The length of the sequence.SymbolListsymList()The symbol list being looped over.
-
-
-
Method Detail
-
symList
SymbolList symList()
The symbol list being looped over.
-
length
int length()
The length of the sequence.
The matrix may allocate length+1 columns.
-
currentCol
double[] currentCol()
The current column of the matrix.
-
lastCol
double[] lastCol()
The previous column.
-
currentRes
Symbol currentRes()
The current symbol.
-
canAdvance
boolean canAdvance()
Can we advance?
-
advance
void advance()
Advance.
-
-