|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthhreco.recognition.RecognitionSet
The result of a recognizer's computations: a set of mutually exclusive interpretations of a stroke or a set of strokes, expressed by Recognition objects as typed data with associated values.
Recognition
Field Summary | |
static RecognitionSet |
NO_RECOGNITION
A constant that represents no recognition results. |
Constructor Summary | |
RecognitionSet()
Construct an empty recognition set. |
|
RecognitionSet(Recognition[] rs)
Construct a recognition set that contains the given recognitions. |
Method Summary | |
void |
addRecognition(Recognition r)
Add a recognition to the set by inserting it in descending order of confidence value. |
Recognition |
getHighestValueRecognition()
Return the recognition object that has the highest value. |
Recognition |
getLowestValueRecognition()
Return the recognition object that has the lowest value. |
int |
getRecognitionCount()
Return the number of recognitions in this set. |
Recognition |
getRecognitionOfType(Type type)
Return the recognition contained by this set with the given type, or null if it's not contained. |
java.util.Iterator |
recognitions()
Return an iterator over the recognized types in sorted order from highest confidence to lowest. |
void |
removeRecognition(Recognition r)
Remove the given recognition from the set. |
java.lang.String |
toString()
Return the text representation of the recognition set. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final RecognitionSet NO_RECOGNITION
Constructor Detail |
public RecognitionSet()
public RecognitionSet(Recognition[] rs)
Method Detail |
public void addRecognition(Recognition r)
public Recognition getHighestValueRecognition()
public Recognition getLowestValueRecognition()
public int getRecognitionCount()
public Recognition getRecognitionOfType(Type type)
public java.util.Iterator recognitions()
public void removeRecognition(Recognition r)
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |