public class PhoneNonEmittingSearchState extends java.lang.Object implements SearchState, SearchStateArc
Modifier and Type | Field and Description |
---|---|
protected AllphoneLinguist |
linguist |
protected Unit |
unit |
Constructor and Description |
---|
PhoneNonEmittingSearchState(Unit unit,
AllphoneLinguist linguist,
float insertionProb,
float languageProb) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
float |
getInsertionProbability()
Gets the insertion probability of entering this state
|
float |
getLanguageProbability()
Gets the language probability of entering this state
|
java.lang.Object |
getLexState()
Returns the lex tree state
|
int |
getOrder()
Returns the order of this particular state
|
float |
getProbability()
Gets the composite probability of entering this state
|
java.lang.String |
getSignature()
Returns a unique signature for this state
|
SearchState |
getState()
Gets a successor to this search state
|
SearchStateArc[] |
getSuccessors()
Gets a successor to this search state
|
WordSequence |
getWordHistory()
Gets the word history for this state
|
int |
hashCode() |
boolean |
isEmitting()
Determines if this is an emitting state
|
boolean |
isFinal()
Determines if this is a final state
|
java.lang.String |
toPrettyString()
Returns a pretty version of the string representation for this object
|
protected Unit unit
protected AllphoneLinguist linguist
public PhoneNonEmittingSearchState(Unit unit, AllphoneLinguist linguist, float insertionProb, float languageProb)
public SearchStateArc[] getSuccessors()
SearchState
getSuccessors
in interface SearchState
public boolean isEmitting()
SearchState
isEmitting
in interface SearchState
true
if the state is an emitting statepublic boolean isFinal()
SearchState
isFinal
in interface SearchState
true
if the state is a final statepublic java.lang.String toPrettyString()
SearchState
toPrettyString
in interface SearchState
public java.lang.String getSignature()
SearchState
getSignature
in interface SearchState
public WordSequence getWordHistory()
SearchState
getWordHistory
in interface SearchState
public int getOrder()
SearchState
getOrder
in interface SearchState
public SearchState getState()
SearchStateArc
getState
in interface SearchStateArc
public float getProbability()
SearchStateArc
getProbability
in interface SearchStateArc
public float getLanguageProbability()
SearchStateArc
getLanguageProbability
in interface SearchStateArc
public float getInsertionProbability()
SearchStateArc
getInsertionProbability
in interface SearchStateArc
public java.lang.Object getLexState()
SearchState
getLexState
in interface SearchState
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object