edu.mit.sketch.clocksketch.characterRecognition
Interface BackEndRecognizer


public interface BackEndRecognizer


Field Summary
static java.lang.String classificationFinishedCommand
           
static java.lang.String classificationStartedCommand
           
 
Method Summary
 void addActionListener(java.lang.Object listener)
          Used to add an ActionListener for updates on the status of classification.
 java.lang.String classifyStrokes(java.util.Collection<PenStroke> strokeSet)
          Given a collection of strokes, the BackEndRecognizer will attempt to identify a string (most likely a single character) that represents these strokes.
 int getClassificationProgress()
          Returns a value between 0 and 100 representing how close the back-end believes it is to recognizing a character
 void removeActionListener(java.lang.Object listener)
          Used to remove an ActionListener
 void setInitialParameters(java.util.HashMap parameter)
          Completely dependent upon the actual implementation of the back-end, this is used to pass information like kernel size, sample rate, or any other variables the end-coder may want to manipulate easily.
 

Field Detail

classificationFinishedCommand

static final java.lang.String classificationFinishedCommand
See Also:
Constant Field Values

classificationStartedCommand

static final java.lang.String classificationStartedCommand
See Also:
Constant Field Values
Method Detail

classifyStrokes

java.lang.String classifyStrokes(java.util.Collection<PenStroke> strokeSet)
Given a collection of strokes, the BackEndRecognizer will attempt to identify a string (most likely a single character) that represents these strokes. If it cannot find a match, returns null.

Parameters:
strokeSet -

setInitialParameters

void setInitialParameters(java.util.HashMap parameter)
Completely dependent upon the actual implementation of the back-end, this is used to pass information like kernel size, sample rate, or any other variables the end-coder may want to manipulate easily.

Parameters:
parameter -

addActionListener

void addActionListener(java.lang.Object listener)
Used to add an ActionListener for updates on the status of classification.

Parameters:
listener - implements ActionListener

removeActionListener

void removeActionListener(java.lang.Object listener)
Used to remove an ActionListener

Parameters:
listener -

getClassificationProgress

int getClassificationProgress()
Returns a value between 0 and 100 representing how close the back-end believes it is to recognizing a character