edu.cmu.sphinx.linguist
Interface SearchState

All Known Subinterfaces:
HMMSearchState, UnitSearchState, WordSearchState
All Known Implementing Classes:
AlternativeState, BranchState, ExtendedUnitState, GrammarState, HMMStateState, LexTreeLinguist.LexTreeEndUnitState, LexTreeLinguist.LexTreeEndWordState, LexTreeLinguist.LexTreeHMMState, LexTreeLinguist.LexTreeNonEmittingHMMState, LexTreeLinguist.LexTreeUnitState, LexTreeLinguist.LexTreeWordState, NonEmittingHMMState, PronunciationState, SentenceHMMState, UnitState, WordState

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

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

Returns:
the set of successors

isEmitting

boolean isEmitting()
Determines if this is an emitting state

Returns:
true if the state is an emitting state

isFinal

boolean isFinal()
Determines if this is a final state

Returns:
true if the state is a final state

toPrettyString

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

Returns:
a pretty string

getSignature

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

Returns:
the signature for the state

getWordHistory

WordSequence getWordHistory()
Gets the word history for this state

Returns:
the word history

getLexState

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

Returns:
the lex tree state

getOrder

int getOrder()
Returns the order of this particular state

Returns:
the state order for this state