Package org.biojava.bio.dp.onehead
Class SmallCursor
- java.lang.Object
-
- org.biojava.bio.dp.onehead.SmallCursor
-
- All Implemented Interfaces:
DPCursor
public class SmallCursor extends Object
Constant-memory implementation of single-head DP cursor.- Author:
- Matthew Pocock
-
-
Constructor Summary
Constructors Constructor Description SmallCursor(State[] states, SymbolList symList, Iterator symIterator)
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
SmallCursor
public SmallCursor(State[] states, SymbolList symList, Iterator symIterator)
-
-
Method Detail
-
symList
public SymbolList symList()
Description copied from interface:DPCursorThe symbol list being looped over.
-
length
public int length()
Description copied from interface:DPCursorThe length of the sequence.
The matrix may allocate length+1 columns.
-
currentCol
public double[] currentCol()
Description copied from interface:DPCursorThe current column of the matrix.
-
currentRes
public Symbol currentRes()
Description copied from interface:DPCursorThe current symbol.- Specified by:
currentResin interfaceDPCursor
-
canAdvance
public boolean canAdvance()
Description copied from interface:DPCursorCan we advance?- Specified by:
canAdvancein interfaceDPCursor
-
-