public class UnitState extends SentenceHMMState implements UnitSearchState
SentenceHMMState.Color| Constructor and Description |
|---|
UnitState(PronunciationState parent,
int which,
Unit unit)
Creates a UnitState.
|
UnitState(Unit unit,
HMMPosition position)
Creates a UnitState with the given unit and HMM position.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Gets the name for this state
|
int |
getOrder()
Returns the state order for this state type
|
HMMPosition |
getPosition()
Gets the position for this unit
|
java.lang.String |
getPrettyName()
Gets the pretty name for this unit sate
|
java.lang.String |
getTypeLabel()
Retrieves a short label describing the type of this state.
|
Unit |
getUnit()
Gets the unit associated with this state
|
java.lang.String |
getValueSignature()
Returns the value signature of this unit
|
boolean |
isLast()
Returns true if this unit is the last unit of the pronunciation
|
boolean |
isUnit()
Determines if this state is a unit state
|
collectStates, connect, dumpAll, findArc, getAnnotation, getAssociatedWord, getColor, getFullName, getLexState, getNumSuccessors, getParent, getSignature, getSuccessors, getTitle, getWhich, getWordHistory, isEmitting, isFanIn, isFinal, isProcessed, isSharedState, isWordStart, resetAllProcessed, setColor, setFanIn, setFinalState, setProcessed, setSharedState, setWhich, setWordStart, toPrettyString, toString, validateAll, visitStatesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLexState, getSignature, getSuccessors, getWordHistory, isEmitting, isFinal, toPrettyStringpublic UnitState(PronunciationState parent, int which, Unit unit)
parent - the parent statewhich - the index of the given stateunit - the unit associated with this statepublic UnitState(Unit unit, HMMPosition position)
unit - the unit associated with this stateposition - the HMM position of this unitpublic Unit getUnit()
getUnit in interface UnitSearchStatepublic boolean isLast()
true if the unit is the last unitpublic java.lang.String getName()
getName in class SentenceHMMStatepublic java.lang.String getValueSignature()
getValueSignature in class SentenceHMMStatepublic java.lang.String getPrettyName()
getPrettyName in class SentenceHMMStatepublic java.lang.String getTypeLabel()
getTypeLabel in class SentenceHMMStatepublic HMMPosition getPosition()
public boolean isUnit()
SentenceHMMStateisUnit in class SentenceHMMStatetrue if the state is a unit state.public int getOrder()
getOrder in interface SearchStategetOrder in class SentenceHMMState