edu.cmu.sphinx.linguist
Interface SearchState

All Known Subinterfaces:
HMMSearchState, UnitSearchState, WordSearchState
All Known Implementing Classes:
HMMStateState, LexTreeLinguist.LexTreeEndUnitState, LexTreeLinguist.LexTreeEndWordState, LexTreeLinguist.LexTreeHMMState, edu.cmu.sphinx.linguist.lextree.LexTreeLinguist.LexTreeState, LexTreeLinguist.LexTreeUnitState, LexTreeLinguist.LexTreeWordState, PronunciationState, SentenceHMMState, UnitState

public interface SearchState

Represents a single state in a language search space


Method Summary
 java.lang.Object getLexState()
          Returns the lex tree state
 int getOrder()
          Returns the order of this particular state
 java.lang.String getSignature()
          Returns a unique signature for this state
 SearchStateArc[] getSuccessors()
          Gets a successor to this search state
 WordSequence getWordHistory()
          Gets the word history for this state
 boolean isEmitting()
          Determines if this is an emitting state
 boolean isFinal()
          Determines if this is a final state
 java.lang.String toPrettyString()
          Returns a pretty version of the string representation for this object
 

Method Detail

getSuccessors

public SearchStateArc[] getSuccessors()
Gets a successor to this search state

Returns:
the set of successors

isEmitting

public boolean isEmitting()
Determines if this is an emitting state

Returns:
true if the state is an emitting state

isFinal

public boolean isFinal()
Determines if this is a final state

Returns:
true if the state is a final state

toPrettyString

public java.lang.String toPrettyString()
Returns a pretty version of the string representation for this object

Returns:
a pretty string

getSignature

public java.lang.String getSignature()
Returns a unique signature for this state

Returns:
the signature for the state

getWordHistory

public WordSequence getWordHistory()
Gets the word history for this state

Returns:
the word history

getLexState

public java.lang.Object getLexState()
Returns the lex tree state

Returns:
the lex tree state

getOrder

public int getOrder()
Returns the order of this particular state

Returns:
the state order for this state