|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biojava.bio.dp.onehead.SmallCursor
public class SmallCursor
Constant-memory implementation of single-head DP cursor.
| Constructor Summary | |
|---|---|
SmallCursor(State[] states,
SymbolList symList,
Iterator symIterator)
|
|
| Method Summary | |
|---|---|
void |
advance()
Advance. |
boolean |
canAdvance()
Can we advance? |
double[] |
currentCol()
The current column of the matrix. |
Symbol |
currentRes()
The current symbol. |
double[] |
lastCol()
The previous column. |
Symbol |
lastRes()
The previous symbol. |
int |
length()
The length of the sequence. |
SymbolList |
symList()
The symbol list being looped over. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SmallCursor(State[] states,
SymbolList symList,
Iterator symIterator)
| Method Detail |
|---|
public SymbolList symList()
DPCursor
public int length()
DPCursorThe length of the sequence.
The matrix may allocate length+1 columns.
public double[] currentCol()
DPCursor
public double[] lastCol()
DPCursor
public void advance()
DPCursor
advance in interface DPCursorpublic Symbol currentRes()
DPCursor
currentRes in interface DPCursorpublic Symbol lastRes()
DPCursor
lastRes in interface DPCursorpublic boolean canAdvance()
DPCursor
canAdvance in interface DPCursor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||