© 2006-2007 ETH Zurich

org.ximtec.igesture.core
Class Result

java.lang.Object
  extended by org.ximtec.igesture.core.Result

public class Result
extends Object

A single result of the recognition process.

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

Constructor Summary
Result(GestureClass gestureClass, double accuracy)
          Constructs a new result.
 
Method Summary
 double getAccuracy()
          Returns the accuracy for the gesture class of this result object.
 GestureClass getGestureClass()
          Returns the result gesture class.
 String getGestureClassName()
          Returns the name of the gesture class represented by this result or an empty string if no gesture class is associated with this result object.
 Object getUserObject()
          Returns a user object.
 void setAccuracy(double accuracy)
          Sets the accuracy for the gesture class of this result object.
 void setGestureClass(GestureClass gestureClass)
           
 void setUserObject(Object userObject)
          Sets a user object.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Result

public Result(GestureClass gestureClass,
              double accuracy)
Constructs a new result.

Parameters:
gestureClass - the recognised gesture class.
accuracy - the accuracy for the recognised gesture class.
Method Detail

setAccuracy

public void setAccuracy(double accuracy)
Sets the accuracy for the gesture class of this result object.

Parameters:
accuracy - the accuracy for the gesture class of this result object.

getAccuracy

public double getAccuracy()
Returns the accuracy for the gesture class of this result object.

Returns:
the accuracy for the gesture class of this result object.

getGestureClass

public GestureClass getGestureClass()
Returns the result gesture class.

Returns:
the result gesture class.

setGestureClass

public void setGestureClass(GestureClass gestureClass)
Parameters:
gestureClass - the gestureClass to set

setUserObject

public void setUserObject(Object userObject)
Sets a user object. A user object enables an algorithm to return an arbitrary object. However, the user is responsible for the correct handling since no explicit type information is available.

Parameters:
userObject - the user object to be set.

getUserObject

public Object getUserObject()
Returns a user object. A user object enables an algorithm to return an arbitrary object. However, the user is responsible for the correct handling since no explicit type information is available.

Returns:
the user object.

getGestureClassName

public String getGestureClassName()
Returns the name of the gesture class represented by this result or an empty string if no gesture class is associated with this result object.

Returns:
the name of the gesture class represented by this result.

toString

public String toString()
Overrides:
toString in class Object

© 2006-2007 ETH Zurich

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