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, visitStates
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLexState, getSignature, getSuccessors, getWordHistory, isEmitting, isFinal, toPrettyString
public 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 UnitSearchState
public boolean isLast()
true
if the unit is the last unitpublic java.lang.String getName()
getName
in class SentenceHMMState
public java.lang.String getValueSignature()
getValueSignature
in class SentenceHMMState
public java.lang.String getPrettyName()
getPrettyName
in class SentenceHMMState
public java.lang.String getTypeLabel()
getTypeLabel
in class SentenceHMMState
public HMMPosition getPosition()
public boolean isUnit()
SentenceHMMState
isUnit
in class SentenceHMMState
true
if the state is a unit state.public int getOrder()
getOrder
in interface SearchState
getOrder
in class SentenceHMMState