edu.cmu.sphinx.research.parallel
Class ParallelHMMStateState

java.lang.Object
  extended byedu.cmu.sphinx.linguist.flat.SentenceHMMState
      extended byedu.cmu.sphinx.linguist.flat.HMMStateState
          extended byedu.cmu.sphinx.research.parallel.ParallelHMMStateState
All Implemented Interfaces:
HMMSearchState, ParallelState, SearchState, java.io.Serializable

public class ParallelHMMStateState
extends HMMStateState
implements ParallelState

Represents an HMMStateState in a feature stream.

See Also:
Serialized Form

Constructor Summary
ParallelHMMStateState(SentenceHMMState parent, FeatureStream stream, HMMState hmmState, int tokenStackSize)
          Creates a ParallelHMMStateState
 
Method Summary
 void clear()
          Clears/resets any accumulated state or history
 FeatureStream getFeatureStream()
          Returns the FeatureStream of this ParallelHMMStateState.
 java.lang.String getName()
          Returns the name of this ParallelHMMStateState.
 TokenStack getTokenStack()
          Returns the token stack of this ParallelHMMStateState.
 
Methods inherited from class edu.cmu.sphinx.linguist.flat.HMMStateState
getHMMState, getOrder, getScore, getTypeLabel, isEmitting
 
Methods inherited from class edu.cmu.sphinx.linguist.flat.SentenceHMMState
collectStates, connect, dumpAll, findArc, getAssociatedWord, getColor, getFullName, getLexState, 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

ParallelHMMStateState

public ParallelHMMStateState(SentenceHMMState parent,
                             FeatureStream stream,
                             HMMState hmmState,
                             int tokenStackSize)
Creates a ParallelHMMStateState

Parameters:
parent - the parent of this state
stream - the name of the feature stream of this HMMState
hmmState - the hmmState associated with this state
tokenStackSize - the height of the token stack
Method Detail

getTokenStack

public TokenStack getTokenStack()
Returns the token stack of this ParallelHMMStateState.

Specified by:
getTokenStack in interface ParallelState
Returns:
the token stack

getFeatureStream

public FeatureStream getFeatureStream()
Returns the FeatureStream of this ParallelHMMStateState.

Specified by:
getFeatureStream in interface ParallelState
Returns:
the FeatureStream of this ParallelHMMStateState

getName

public java.lang.String getName()
Returns the name of this ParallelHMMStateState. It is in the form of "Hx.y", where y is the index of the parallel branch, and x is which state within the branch. For example, the first state in the first parallel branch might have name "H0.0".

Overrides:
getName in class SentenceHMMState
Returns:
the name of this ParallelHMMStateState

clear

public void clear()
Clears/resets any accumulated state or history