org.csapi.jr.se.ui
Class UIRecognitionProperty

java.lang.Object
  |
  +--org.csapi.jr.se.ui.UIRecognitionProperty
All Implemented Interfaces:
java.io.Serializable

public final class UIRecognitionProperty
extends java.lang.Object
implements java.io.Serializable

Defines the Sequence of Data Elements that specify the additional properties for the recognition engine. The TpUIRecognitionProperty is a hint to the recognition engine on how it should interpret the input. The defined properties are: P_RECOGNITION_PROPERTY_CONFIDENCE_LEVEL - The speech recognition confidence level, a float value in the range of 0.0 to 1.0. Results are rejected when the recognitions engine's confidence in its interpretation is below this threshold. A value of 0.0 means minimum confidence is needed for a recognition, and a value of 1.0 requires maximum confidence. The default value is 0.5. P_RECOGNITION_PROPERTY_SENSITIVITY - Set the sensitivity level. A value of 1.0 means that it is highly sensitive to quiet input. A value of 0.0 means it is least sensitive to noise. The default value is 0.5. P_RECOGNITION_PROPERTY_SPEEDVSACCURACY - A hint specifying the desired balance between speed vs. accuracy. A value of 0.0 means fastest recognition. A value of 1.0 means best accuracy. The default is value 0.5. P_RECOGNITION_PROPERTY_COMPLETE_TIMEOUT - The speech timeout value to use when an active grammar is matched.

See Also:
Serialized Form

Constructor Summary
UIRecognitionProperty()
          Creates a new UIRecognitionProperty instance.
UIRecognitionProperty(java.lang.String _propertyName, java.lang.String _propertyValue)
          Creates a new UIRecognitionProperty instance.
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates whether some other object is 'equal to' this one.
 java.lang.String getPropertyName()
          This method returns a propertyName.
 java.lang.String getPropertyValue()
          This method returns a propertyValue.
 int hashCode()
          Returns a hashcode value for the object.
 void setPropertyName(java.lang.String propertyName)
          This method sets a propertyName.
 void setPropertyValue(java.lang.String propertyValue)
          This method sets a propertyValue.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIRecognitionProperty

public UIRecognitionProperty()
Creates a new UIRecognitionProperty instance.


UIRecognitionProperty

public UIRecognitionProperty(java.lang.String _propertyName,
                             java.lang.String _propertyValue)
Creates a new UIRecognitionProperty instance.

Parameters:
_propertyName - Defines the name of the property.
_propertyValue - Defines the value of the property.
Method Detail

getPropertyName

public java.lang.String getPropertyName()
This method returns a propertyName.

Returns:
a String value

getPropertyValue

public java.lang.String getPropertyValue()
This method returns a propertyValue.

Returns:
a String value

setPropertyName

public void setPropertyName(java.lang.String propertyName)
This method sets a propertyName.


setPropertyValue

public void setPropertyValue(java.lang.String propertyValue)
This method sets a propertyValue.


equals

public boolean equals(java.lang.Object o)
Indicates whether some other object is 'equal to' this one.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Returns a hashcode value for the object.

Overrides:
hashCode in class java.lang.Object