edu.cmu.sphinx.linguist.flat
Class GrammarState

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

public class GrammarState
extends SentenceHMMState

Represents a non-emitting sentence hmm state

See Also:
Serialized Form

Constructor Summary
GrammarState(GrammarNode node)
          Creates a GrammarState
 
Method Summary
 GrammarNode getGrammarNode()
          Gets the grammar node 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

GrammarState

public GrammarState(GrammarNode node)
Creates a GrammarState

Parameters:
node - the GrammarNode associated with this state
Method Detail

getGrammarNode

public GrammarNode getGrammarNode()
Gets the grammar node associated with this state

Returns:
the grammar node

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