© 2006-2007 ETH Zurich

org.ximtec.igesture.algorithm
Interface Algorithm

All Known Implementing Classes:
DefaultAlgorithm, HWRecogniser, Rubine3DAlgorithm, RubineAlgorithm, RubineAlgorithmBigDecimal, SampleBasedAlgorithm, SigerAlgorithm, SiGridAlgorithm

public interface Algorithm

Interface to be implemented by any gesture recognition algorithm.

Version:
1.0, Dec 2006
Author:
Ueli Kurmann, igesture@uelikurmann.ch, Beat Signer, signer@inf.ethz.ch

Method Summary
 Enum<?>[] getConfigParameters()
          Returns an array of containing the configuration parameters.
 String getDefaultParameterValue(String parameterName)
          Returns the default value for a given parameter.
 int getType()
          Get the type of algorithm
 void init(Configuration configuration)
          Initialises the algorithm.
 ResultSet recognise(Gesture<?> gesture)
          Runs the recogniser on a given set of strokes represented by a gesture.
 

Method Detail

init

void init(Configuration configuration)
          throws AlgorithmException
Initialises the algorithm.

Parameters:
configuration - the configuration to be used for the initialisation of the algorithm.
Throws:
AlgorithmException - if there is a problem in the algorithm's initialisation phase.

recognise

ResultSet recognise(Gesture<?> gesture)
                    throws AlgorithmException
Runs the recogniser on a given set of strokes represented by a gesture.

Parameters:
gesture - the gesture to be recognised.
Returns:
the result set containing the recognised gesture classes.
Throws:
AlgorithmException - if there was an exception while recognising the note.

getConfigParameters

Enum<?>[] getConfigParameters()
Returns an array of containing the configuration parameters.

Returns:
the configuration parameters.

getDefaultParameterValue

String getDefaultParameterValue(String parameterName)
Returns the default value for a given parameter.

Parameters:
parameterName - the name of the parameter whose default value has to be returned.
Returns:
the default value for the specified parameter.

getType

int getType()
Get the type of algorithm

See Also:
Constant

© 2006-2007 ETH Zurich

Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.