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 SearchStateArc
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object to testtrue
if the object is equal to thispublic boolean isFinal()
isFinal
in interface SearchState
public SearchStateArc[] getSuccessors()
getSuccessors
in interface SearchState
public java.lang.String getSignature()
getSignature
in interface SearchState
public int getOrder()
getOrder
in interface SearchState
public java.lang.String toString()
public boolean isEmitting()
isEmitting
in interface SearchState
public java.lang.Object getLexState()
getLexState
in interface SearchState
public java.lang.String toPrettyString()
toPrettyString
in interface SearchState
public WordSequence getWordHistory()
getWordHistory
in interface SearchState
public SearchState getState()
getState
in interface SearchStateArc
public float getProbability()
getProbability
in interface SearchStateArc
public float getInsertionProbability()
getInsertionProbability
in interface SearchStateArc