Skip to content

Commit

Permalink
removed reduntant code
Browse files Browse the repository at this point in the history
  • Loading branch information
dtracers committed Jul 4, 2016
1 parent cfe42ac commit ac307c5
Showing 1 changed file with 15 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public interface RecognitionInterface {
* @return A list representing the changes that occurred.
* @throws RecognitionException Thrown if there is a recognition Problem.
*/
public Commands.SrlUpdateList addUpdate(String sketchId, Commands.SrlUpdate update) throws RecognitionException;
Commands.SrlUpdateList addUpdate(String sketchId, Commands.SrlUpdate update) throws RecognitionException;

/**
*
Expand All @@ -28,7 +28,7 @@ public interface RecognitionInterface {
* @return A list representing the changes that occurred.
* @throws RecognitionException Thrown if there is a recognition Problem.
*/
public Commands.SrlUpdateList setUpdateList(String sketchId, Commands.SrlUpdateList updateList) throws RecognitionException;
Commands.SrlUpdateList setUpdateList(String sketchId, Commands.SrlUpdateList updateList) throws RecognitionException;

/**
*
Expand All @@ -37,7 +37,7 @@ public interface RecognitionInterface {
* @return A sketch representing the recognized result.
* @throws RecognitionException Thrown if there is a recognition Problem.
*/
public SrlSketch setSketch(String sketchId, SrlSketch sketch) throws RecognitionException;
SrlSketch setSketch(String sketchId, SrlSketch sketch) throws RecognitionException;

/**
* Adds a template to be saved for use in recognition later.
Expand All @@ -46,7 +46,7 @@ public interface RecognitionInterface {
* @param template The template that is being saved.
* @throws TemplateException Thrown if there is a recognition Problem.
*/
public void addTemplate(String templateId, Sketch.SrlInterpretation interpretation, SrlSketch template) throws TemplateException;
void addTemplate(String templateId, Sketch.SrlInterpretation interpretation, SrlSketch template) throws TemplateException;

/**
* Adds a template to be saved for use in recognition later.
Expand All @@ -55,7 +55,7 @@ public interface RecognitionInterface {
* @param template The template that is being saved.
* @throws TemplateException Thrown if there is a recognition Problem.
*/
public void addTemplate(String templateId, Sketch.SrlInterpretation interpretation, Sketch.SrlShape template) throws TemplateException;
void addTemplate(String templateId, Sketch.SrlInterpretation interpretation, Sketch.SrlShape template) throws TemplateException;

/**
* Adds a template to be saved for use in recognition later.
Expand All @@ -64,22 +64,22 @@ public interface RecognitionInterface {
* @param template The template that is being saved.
* @throws TemplateException Thrown if there is a recognition Problem.
*/
public void addTemplate(String templateId, Sketch.SrlInterpretation interpretation, Sketch.SrlStroke template) throws TemplateException;
void addTemplate(String templateId, Sketch.SrlInterpretation interpretation, Sketch.SrlStroke template) throws TemplateException;

/**
* Adds a template that is used to immediately train a system.
*
* @param template The template that is being saved.
* @throws TemplateException Thrown if there is a recognition Problem.
*/
public void trainTemplate(Sketch.RecognitionTemplate template) throws TemplateException;
void trainTemplate(Sketch.RecognitionTemplate template) throws TemplateException;

/**
* Called when Training is finished to show perform any cleanup that is needed.
*
* @throws RecognitionException Thrown if there is a recognition Problem.
*/
public void finishTraining() throws RecognitionException;
void finishTraining() throws RecognitionException;

/**
* Recognizes the sketch as a list of changes producing a list of changes as a result.
Expand All @@ -89,7 +89,7 @@ public interface RecognitionInterface {
* @return A list representing the changes that occurred.
* @throws RecognitionException Thrown if there is a recognition Problem.
*/
public Commands.SrlUpdateList recognize(String sketchId, Commands.SrlUpdateList updateList) throws RecognitionException;
Commands.SrlUpdateList recognize(String sketchId, Commands.SrlUpdateList updateList) throws RecognitionException;

/**
* Recognizes the sketch as a single entity producing a recognized sketch as a result.
Expand All @@ -99,7 +99,7 @@ public interface RecognitionInterface {
* @return A sketch representing the recognized result.
* @throws RecognitionException Thrown if there is a recognition Problem.
*/
public SrlSketch recognize(String sketchId, SrlSketch sketch) throws RecognitionException;
SrlSketch recognize(String sketchId, SrlSketch sketch) throws RecognitionException;

/**
* Recognizes a template that is used to evaluate the sketch.
Expand All @@ -109,7 +109,7 @@ public interface RecognitionInterface {
* @return A list of interpretations representing the results.
* @throws RecognitionException Thrown if there is a recognition Problem.
*/
public List<Sketch.SrlInterpretation> recognize(String sketchId, Sketch.RecognitionTemplate template)
List<Sketch.SrlInterpretation> recognize(String sketchId, Sketch.RecognitionTemplate template)
throws RecognitionException;

/**
Expand All @@ -119,10 +119,12 @@ public List<Sketch.SrlInterpretation> recognize(String sketchId, Sketch.Recognit
* @return A list of modified versions of the original sketch that is used to guess templates.
* @throws RecognitionException Thrown if there is a recognition Problem.
*/
public List<Sketch.RecognitionTemplate> generateTemplates(Sketch.RecognitionTemplate original) throws RecognitionException;
List<Sketch.RecognitionTemplate> generateTemplates(Sketch.RecognitionTemplate original) throws RecognitionException;

/**
* Called for an initialization or training to setup for recognition.
*
* @throws RecognitionException Thrown if there is a recognition Problem.
*/
public void initialize() throws RecognitionException;
void initialize() throws RecognitionException;
}

0 comments on commit ac307c5

Please sign in to comment.