public class PronunciationState extends SentenceHMMState implements WordSearchState
SentenceHMMState.Color
Constructor and Description |
---|
PronunciationState(java.lang.String name,
Pronunciation p,
int which)
Creates a PronunciationState
|
PronunciationState(WordState parent,
int which)
Creates a PronunciationState
|
Modifier and Type | Method and Description |
---|---|
int |
getOrder()
Returns the state order for this state type
|
Pronunciation |
getPronunciation()
Gets the pronunciation associated with this state
|
java.lang.String |
getTypeLabel()
Retrieves a short label describing the type of this state.
|
boolean |
isWordStart()
Returns true if this PronunciationState indicates the start of a word.
|
collectStates, connect, dumpAll, findArc, getAnnotation, getAssociatedWord, getColor, getFullName, getLexState, getName, getNumSuccessors, getParent, getPrettyName, getSignature, getSuccessors, getTitle, getValueSignature, getWhich, getWordHistory, isEmitting, isFanIn, isFinal, isProcessed, isSharedState, isUnit, resetAllProcessed, setColor, setFanIn, setFinalState, setProcessed, setSharedState, setWhich, setWordStart, toPrettyString, toString, validateAll, visitStates
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLexState, getSignature, getSuccessors, getWordHistory, isEmitting, isFinal, toPrettyString
public PronunciationState(WordState parent, int which)
parent
- the parent word of the current pronunciationwhich
- the pronunciation of interestpublic PronunciationState(java.lang.String name, Pronunciation p, int which)
name
- the name of the pronunciation associated with this statep
- the pronunciationwhich
- the index for the pronunciationpublic Pronunciation getPronunciation()
getPronunciation
in interface WordSearchState
public java.lang.String getTypeLabel()
getTypeLabel
in class SentenceHMMState
public int getOrder()
getOrder
in interface SearchState
getOrder
in class SentenceHMMState
public boolean isWordStart()
isWordStart
in interface WordSearchState
isWordStart
in class SentenceHMMState