edu.cmu.sphinx.linguist.flat
Class AlternativeState

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

public class AlternativeState
extends SentenceHMMState
implements java.io.Serializable

Represents a set of alternatives in an SentenceHMMS

See Also:
Serialized Form

Constructor Summary
AlternativeState(GrammarState parent, int which)
          Creates a WordState
 
Method Summary
 Word[] getAlternative()
          Gets the word associated with this state
 int getOrder()
          Returns the state order for this state type
 java.lang.String getTypeLabel()
          Retrieves a short label describing the type of this state.
 
Methods inherited from class edu.cmu.sphinx.linguist.flat.SentenceHMMState
collectStates, connect, dumpAll, findArc, getAssociatedWord, getColor, getFullName, getLexState, getName, getNumSuccessors, getParent, getPrettyName, 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

AlternativeState

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

Method Detail

getAlternative

public Word[] getAlternative()
Gets the word associated with this state

Returns:
the word

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