com.motorola.oem.hapi
Class A2dManager

java.lang.Object
  extended by OEM
      extended by com.motorola.oem.hapi.A2dManager

public final class A2dManager
extends OEM

 The A2dManager class contains methods for initialization and management of the A2d unit.
General description:

Once an A2dManager instance is constructed, three instances of A2dChannel are created and
map each converter to the respective channel - CH1,CH2,CH3.
The class provides the user access to all channels for query and configuration.
Note: This class is implemented as a singleton and is accessible by the static method: getInstance().


Field Summary
static int CH1
          Constant specifying CH1
static int CH2
          Constant specifying CH2
static int CH3
          Constant specifying CH3
 
Method Summary
 A2dChannel getChannel(int channelNum)
          Get the A2dChannel specified by channelNum.
static A2dManager getInstance()
          Returns a reference to the A2dManager's single instance.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CH1

public static final int CH1
Constant specifying CH1

See Also:
Constant Field Values

CH2

public static final int CH2
Constant specifying CH2

See Also:
Constant Field Values

CH3

public static final int CH3
Constant specifying CH3

See Also:
Constant Field Values
Method Detail

getInstance

public static A2dManager getInstance()
                              throws A2dException
Returns a reference to the A2dManager's single instance. If the instance does not exist, then one is created and its reference is returned.

Throws:
A2dException - Trying construct A2dManager in a device with an HMI HW. Error code - OEMException.CONSTRUCT_CLASS_ERROR Failed to construct A2dManager. Error code - OEMException.GENERAL_ERROR

getChannel

public A2dChannel getChannel(int channelNum)
                      throws A2dException
Get the A2dChannel specified by channelNum.
 Provides access to A2dChannels.

Parameters:
channelNum - requested channel number.
Returns:
A2dChannel Instance related to channelNum.
Throws:
A2dException - Calling getChannel with invalid parameters. Error code - OEMException.ILLEGAL_PARAM_ERROR
See Also:
CH1, CH2, CH3