Package org.biojava.bio.dp.onehead
Class SmallCursor
java.lang.Object
org.biojava.bio.dp.onehead.SmallCursor
- All Implemented Interfaces:
DPCursor
Constant-memory implementation of single-head DP cursor.
- Author:
- Matthew Pocock
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadvance()Advance.booleanCan we advance?double[]The current column of the matrix.The current symbol.double[]lastCol()The previous column.lastRes()The previous symbol.intlength()The length of the sequence.symList()The symbol list being looped over.
-
Constructor Details
-
SmallCursor
-
-
Method Details
-
symList
Description copied from interface:DPCursorThe symbol list being looped over. -
length
Description copied from interface:DPCursorThe length of the sequence.
The matrix may allocate length+1 columns.
-
currentCol
Description copied from interface:DPCursorThe current column of the matrix. -
lastCol
Description copied from interface:DPCursorThe previous column. -
advance
Description copied from interface:DPCursorAdvance. -
currentRes
Description copied from interface:DPCursorThe current symbol.- Specified by:
currentResin interfaceDPCursor
-
lastRes
Description copied from interface:DPCursorThe previous symbol. -
canAdvance
public boolean canAdvance()Description copied from interface:DPCursorCan we advance?- Specified by:
canAdvancein interfaceDPCursor
-