public class AFlatLinguist.GrammarState
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Determines if the given object is equal to this object
|
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 a lex state associated with the searc state (not applicable
to this linguist)
|
int |
getOrder()
Returns the order of this state type among all of the search states
|
float |
getProbability()
Gets the composite probability of entering this state
|
java.lang.String |
getSignature()
Returns a unique string representation of the state.
|
SearchState |
getState()
Gets a successor to this search state
|
SearchStateArc[] |
getSuccessors()
Gets the set of successors for this state
|
WordSequence |
getWordHistory()
Returns the word history for this state (not applicable to this
linguist)
|
int |
hashCode()
Generate a hashcode for an object.
|
boolean |
isEmitting()
Determines if this state is an emitting state
|
boolean |
isFinal()
Determines if this is a final state in the search graph
|
java.lang.String |
toPrettyString()
Returns a well formatted string representation of this state
|
java.lang.String |
toString()
Returns a string representation of this object
|
public float getLanguageProbability()
getLanguageProbability in interface SearchStateArcpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the object to testtrue if the object is equal to thispublic boolean isFinal()
isFinal in interface SearchStatepublic SearchStateArc[] getSuccessors()
getSuccessors in interface SearchStatepublic java.lang.String getSignature()
getSignature in interface SearchStatepublic int getOrder()
getOrder in interface SearchStatepublic java.lang.String toString()
public boolean isEmitting()
isEmitting in interface SearchStatepublic java.lang.Object getLexState()
getLexState in interface SearchStatepublic java.lang.String toPrettyString()
toPrettyString in interface SearchStatepublic WordSequence getWordHistory()
getWordHistory in interface SearchStatepublic SearchState getState()
getState in interface SearchStateArcpublic float getProbability()
getProbability in interface SearchStateArcpublic float getInsertionProbability()
getInsertionProbability in interface SearchStateArc