edu.cmu.sphinx.linguist.flat
Class WordState

java.lang.Object
  extended byedu.cmu.sphinx.linguist.flat.SentenceHMMState
      extended byedu.cmu.sphinx.linguist.flat.WordState
All Implemented Interfaces:
SearchState, java.io.Serializable

public class WordState
extends SentenceHMMState

Represents a word in an SentenceHMMS

See Also:
Serialized Form

Constructor Summary
WordState(AlternativeState parent, int which)
          Creates a WordState
 
Method Summary
 int getOrder()
          Returns the state order for this state type
 java.lang.String getPrettyName()
          Returns a pretty name for this state
 java.lang.String getTypeLabel()
          Retrieves a short label describing the type of this state.
 Word getWord()
          Gets the word associated with this state
 
Methods inherited from class edu.cmu.sphinx.linguist.flat.SentenceHMMState
collectStates, connect, dumpAll, findArc, getAssociatedWord, getColor, getFullName, getLexState, getName, getNumSuccessors, getParent, getSignature, getSuccessors, getTitle, getValueSignature, getWhich, getWordHistory, isEmitting, isFanIn, isFinal, isProcessed, isSharedState, isUnit, isWordStart, resetAllProcessed, setColor, setFanIn, setFinalState, setProcessed, setSharedState, setWhich, setWordStart, toPrettyString, toString, validateAll, visitStates
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WordState

public WordState(AlternativeState parent,
                 int which)
Creates a WordState

Method Detail

getWord

public Word getWord()
Gets the word associated with this state

Returns:
the word

getPrettyName

public java.lang.String getPrettyName()
Returns a pretty name for this state

Overrides:
getPrettyName in class SentenceHMMState
Returns:
a pretty name for this state

getTypeLabel

public java.lang.String getTypeLabel()
Retrieves a short label describing the type of this state. Typically, subclasses of SentenceHMMState will implement this method and return a short (5 chars or less) label

Overrides:
getTypeLabel in class SentenceHMMState
Returns:
the short label.

getOrder

public int getOrder()
Returns the state order for this state type

Specified by:
getOrder in interface SearchState
Specified by:
getOrder in class SentenceHMMState
Returns:
the state order