edu.cmu.sphinx.linguist.flat
Class BranchState

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

public class BranchState
extends SentenceHMMState

Represents a branching node in a grammar

See Also:
Serialized Form

Constructor Summary
BranchState(java.lang.String leftContext, java.lang.String rightContext, int nodeID)
          Creates a branch state
 
Method Summary
 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

BranchState

public BranchState(java.lang.String leftContext,
                   java.lang.String rightContext,
                   int nodeID)
Creates a branch state

Parameters:
nodeID - the grammar node id
Method Detail

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