edu.cmu.sphinx.linguist.flat
Class HMMStateState

java.lang.Object
  extended byedu.cmu.sphinx.linguist.flat.SentenceHMMState
      extended byedu.cmu.sphinx.linguist.flat.HMMStateState
All Implemented Interfaces:
HMMSearchState, SearchState, java.io.Serializable
Direct Known Subclasses:
NonEmittingHMMState, ParallelHMMStateState

public class HMMStateState
extends SentenceHMMState
implements java.io.Serializable, HMMSearchState

Represents a hmmState in an SentenceHMMS

See Also:
Serialized Form

Constructor Summary
HMMStateState(SentenceHMMState parent, HMMState hmmState)
          Creates a HMMStateState
 
Method Summary
 HMMState getHMMState()
          Gets the hmmState associated with this state
 int getOrder()
          Returns the state order for this state type
 float getScore(Data feature)
          Calculate the acoustic score for this state
 java.lang.String getTypeLabel()
          Retrieves a short label describing the type of this state.
 boolean isEmitting()
          Determines if this state is an emitting 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, 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
 
Methods inherited from interface edu.cmu.sphinx.linguist.SearchState
getLexState, getSignature, getSuccessors, getWordHistory, isFinal, toPrettyString
 

Constructor Detail

HMMStateState

public HMMStateState(SentenceHMMState parent,
                     HMMState hmmState)
Creates a HMMStateState

Parameters:
parent - the parent of this state
hmmState - the hmmState associated with this state
Method Detail

getHMMState

public HMMState getHMMState()
Gets the hmmState associated with this state

Specified by:
getHMMState in interface HMMSearchState
Returns:
the hmmState

isEmitting

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

Specified by:
isEmitting in interface SearchState
Overrides:
isEmitting in class SentenceHMMState
Returns:
true if the state is an emitting 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.

getScore

public float getScore(Data feature)
Calculate the acoustic score for this state

Returns:
the acoustic score for this state

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