com.motorola.oem.hapi
Class A2dAutoPeriodConfig

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

public class A2dAutoPeriodConfig
extends java.lang.Object

The A2dAutoPeriodConfig class is designed for holding the configuration profile of A2D channel to period mode.


Constructor Summary
A2dAutoPeriodConfig()
           Constructs a new instance of A2dAutoPeriodConfig.
 
Method Summary
 int getPeriod()
           Gets period from A2dAutoPeriodConfig instance.
 void setPeriod(int period)
           Sets period in A2dAutoPeriodConfig instance.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

A2dAutoPeriodConfig

public A2dAutoPeriodConfig()

Constructs a new instance of A2dAutoPeriodConfig. Sets notification period.
For notification period's initial value see MOTOROLA KJAVA USER’ GUIDE.

Method Detail

setPeriod

public void setPeriod(int period)
               throws A2dException

Sets period in A2dAutoPeriodConfig instance. Period must be defined in integral multiples of 4, for example 4,8,12,...,100,..(the minimum period value is 4 sec)

Parameters:
period - Notification period in seconds
Throws:
A2dException - setPeriod is called with illegal parameters. Error code - OEMException.ILLEGAL_PARAM_ERROR


getPeriod

public int getPeriod()

Gets period from A2dAutoPeriodConfig instance.

Returns:
Notification period in seconds