|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.sketch.recognition.RecognitionSet
public class 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 confidences.
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 |
getBestRecognition()
Return the recognition object that has the highest confidence value, or null if there are no recognitions in this set. |
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. |
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. |
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 getBestRecognition()
public int getRecognitionCount()
public Recognition getRecognitionOfType(Type type)
public Iterator recognitions()
public void removeRecognition(Recognition r)
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |