com.motorola.oem.hapi
Class A2dAutoThresholdConfig

java.lang.Object
  extended by com.motorola.oem.hapi.A2dAutoThresholdConfig

public class A2dAutoThresholdConfig
extends java.lang.Object

 The A2dAutoThresholdConfig class is designed for holding the configuration profile of a2d channel to threshold mode.
General description:

The class holds four thresholds:

1) THRESHOLD_LOW_LIMIT_LOW.
2) THRESHOLD_HIGH_LIMIT_LOW.
3) THRESHOLD_LOW_LIMIT_HIGH.
4) THRESHOLD_HIGH_LIMIT_HIGH

Thresholds must accomplish the following conditions:

THRESHOLD_LOW_LIMIT_LOW <= THRESHOLD_HIGH_LIMIT_LOW
THRESHOLD_HIGH_LIMIT_LOW < THRESHOLD_LOW_LIMIT_HIGH
THRESHOLD_LOW_LIMIT_HIGH <= THRESHOLD_HIGH_LIMIT_HIGH


Field Summary
static short THRESHOLD_HIGH_LIMIT_HIGH
          Constant specifying THRESHOLD_HIGH_LIMIT_HIGH.
static short THRESHOLD_HIGH_LIMIT_LOW
          Constant specifying THRESHOLD_HIGH_LIMIT_LOW.
static short THRESHOLD_LOW_LIMIT_HIGH
          Constant specifying THRESHOLD_LOW_LIMIT_HIGH.
static short THRESHOLD_LOW_LIMIT_LOW
          Constant specifying THRESHOLD_LOW_LIMIT_LOW.
 
Constructor Summary
A2dAutoThresholdConfig()
           Constructs new instance of A2dAutoThresholdConfig.
 
Method Summary
 short getThreshold(short thresholdType)
           Gets threshold from A2dAutoThresholdConfig instance according thresholdType.
 void setThreshold(short thresholdType, short threshold)
           Sets threshold in A2dAutoThresholdConfig instance according to thresholdType.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

THRESHOLD_LOW_LIMIT_LOW

public static final short THRESHOLD_LOW_LIMIT_LOW
Constant specifying THRESHOLD_LOW_LIMIT_LOW.

See Also:
Constant Field Values

THRESHOLD_HIGH_LIMIT_LOW

public static final short THRESHOLD_HIGH_LIMIT_LOW
Constant specifying THRESHOLD_HIGH_LIMIT_LOW.

See Also:
Constant Field Values

THRESHOLD_LOW_LIMIT_HIGH

public static final short THRESHOLD_LOW_LIMIT_HIGH
Constant specifying THRESHOLD_LOW_LIMIT_HIGH.

See Also:
Constant Field Values

THRESHOLD_HIGH_LIMIT_HIGH

public static final short THRESHOLD_HIGH_LIMIT_HIGH
Constant specifying THRESHOLD_HIGH_LIMIT_HIGH.

See Also:
Constant Field Values
Constructor Detail

A2dAutoThresholdConfig

public A2dAutoThresholdConfig()

Constructs new instance of A2dAutoThresholdConfig. Sets Thresholds initial values.
For thresholds initial values see MOTOROLA KJAVA USER’ GUIDE.

Method Detail

setThreshold

public void setThreshold(short thresholdType,
                         short threshold)
                  throws A2dException

Sets threshold in A2dAutoThresholdConfig instance according to thresholdType.

Parameters:
thresholdType - According to constants' fields.
threshold - Value must be in range: 0-255.
Throws:
A2dException - setThreshold is called with illegal parameters. Error code - OEMException.ILLEGAL_PARAM_ERROR


getThreshold

public short getThreshold(short thresholdType)
                   throws A2dException

Gets threshold from A2dAutoThresholdConfig instance according thresholdType.

Parameters:
thresholdType - According to constants' fields
Returns:
Threshold's value
Throws:
A2dException - Treshold invalid parameter (error code OEMException.ILLEGAL_PARAM_ERROR)