edu.cmu.sphinx.research.parallel
Class ParallelUnitState

java.lang.Object
  extended byedu.cmu.sphinx.linguist.flat.SentenceHMMState
      extended byedu.cmu.sphinx.linguist.flat.UnitState
          extended byedu.cmu.sphinx.research.parallel.ParallelUnitState
All Implemented Interfaces:
ParallelState, SearchState, java.io.Serializable, UnitSearchState

public class ParallelUnitState
extends UnitState
implements ParallelState

Represents an UnitState in one particular feature stream, in a search graph with states for multiple feature streams.

See Also:
Serialized Form

Constructor Summary
ParallelUnitState(PronunciationState parent, FeatureStream stream, int which, Unit unit, int tokenStackSize)
          Creates a ParallelUnitState
 
Method Summary
 void clear()
          Clears/resets any accumulated state or history
 FeatureStream getFeatureStream()
          Returns the FeatureStream of the acoustic model behind this ParallelUnitState.
 java.lang.String getName()
          Returns the name of this ParallelUnitState.
 java.lang.String getPrettyName()
          Gets the pretty name for this unit sate
 java.lang.String getTitle()
          Returns the title of this state
 TokenStack getTokenStack()
          Returns the token stack of this ParallelUnitState.
 java.lang.String getValueSignature()
          Returns the value signature
 
Methods inherited from class edu.cmu.sphinx.linguist.flat.UnitState
getOrder, getPosition, getTail, getTypeLabel, getUnit, isLast, isUnit, setTail
 
Methods inherited from class edu.cmu.sphinx.linguist.flat.SentenceHMMState
collectStates, connect, dumpAll, findArc, getAssociatedWord, getColor, getFullName, getLexState, getNumSuccessors, getParent, getSignature, getSuccessors, getWhich, getWordHistory, isEmitting, isFanIn, isFinal, isProcessed, isSharedState, 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, isEmitting, isFinal, toPrettyString
 

Constructor Detail

ParallelUnitState

public ParallelUnitState(PronunciationState parent,
                         FeatureStream stream,
                         int which,
                         Unit unit,
                         int tokenStackSize)
Creates a ParallelUnitState

Parameters:
parent - the parent of this state
stream - the feature stream of this state
which - the index of the given state
unit - the unit associated with this state
tokenStackSize - the token stack size
Method Detail

getTokenStack

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

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

getFeatureStream

public FeatureStream getFeatureStream()
Returns the FeatureStream of the acoustic model behind this ParallelUnitState.

Specified by:
getFeatureStream in interface ParallelState
Returns:
the FeatureStream of the acoustic model

getName

public java.lang.String getName()
Returns the name of this ParallelUnitState. 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 UnitState
Returns:
the name of this ParallelUnitState

getPrettyName

public java.lang.String getPrettyName()
Gets the pretty name for this unit sate

Overrides:
getPrettyName in class UnitState
Returns:
the pretty name

getTitle

public java.lang.String getTitle()
Returns the title of this state

Overrides:
getTitle in class SentenceHMMState
Returns:
the title

getValueSignature

public java.lang.String getValueSignature()
Returns the value signature

Overrides:
getValueSignature in class UnitState
Returns:
the value signature

clear

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