|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthhreco.recognition.SimpleData
An instance of typed data that represents dynamic, user-defined types. If you are writing a low-level recognizer and that recognizes strokes based on a feature vector and knows nothing about the semantics of the recognition, other than a string representation of the type, then this is the class for you (e.g. new SimpleData("scribble")). However, if you have semantic knowledge of the data that is being represented, e.g. the number of sides on the polygon that you just recognized, then you should probably use a statically-typed form of TypedData.
Type
,
TypedData
Field Summary | |
static Type |
TYPE
|
Constructor Summary | |
SimpleData()
Create a SimpleData object without an ID. |
|
SimpleData(java.lang.String typeId)
Create a SimpleData object and initilize the ID. |
Method Summary | |
Type |
getType()
Return the Type of this data. |
java.lang.String |
getTypeID()
Return the string ID. |
void |
init(java.lang.String typeId)
Initilize the ID. |
java.lang.String |
toString()
Return the string ID. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static Type TYPE
Constructor Detail |
public SimpleData()
public SimpleData(java.lang.String typeId)
Method Detail |
public void init(java.lang.String typeId)
public Type getType()
getType
in interface TypedData
public java.lang.String getTypeID()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |