|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.decoder.search.ArrayTokenStack
An array implementation of TokenStack.
Constructor Summary | |
ArrayTokenStack(int capacity)
Constructs a ArrayTokenStack object with the given capacity. |
Method Summary | |
Token |
add(Token newToken)
Adds the given Token to this TokenStack. |
void |
clear()
Removes all of the Tokens from this TokenStack |
int |
getCapacity()
Returns the capacity of this TokenStack, that is, the maximum number of elements allowed in this TokenStack. |
boolean |
isInsertable(float score,
int frameNumber)
Returns true if the given score is higher than the lowest scoring token in this TokenStack. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ArrayTokenStack(int capacity)
capacity
- the height of the stackMethod Detail |
public Token add(Token newToken)
add
in interface TokenStack
newToken
- the new Token to add
public boolean isInsertable(float score, int frameNumber)
isInsertable
in interface TokenStack
score
- the score the check
public int getCapacity()
getCapacity
in interface TokenStack
public void clear()
clear
in interface TokenStack
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |