com.esf.device.modem.factory.service
Interface IModemFactoryService


public interface IModemFactoryService


Field Summary
static java.lang.String SERVICE_NAME
          service name of this interface for the bundle activator (com.esf.device.modem.factory.service.IModemFactoryService)
static int TYPE_3G
          Type of Modem Factory - 3G
static int TYPE_EVDO
          Type of Modem Factory - EVDO
 
Method Summary
 java.util.Hashtable getModemServices()
          Reports modem services available
 int getType()
          Reports type of modem service
 I3gModemService obtain3gModemService(java.lang.String vendorID, java.lang.String productID, java.lang.String usbPortAddress, java.util.Hashtable modemPorts)
          Obtains 3G modem service
 IEvdoModemService obtainEvdoModemService(java.lang.String vendorID, java.lang.String productID, java.lang.String usbPortAddress, java.util.Hashtable modemPorts)
          Obtains EVDO modem service
 IModemService obtainModemService(java.lang.String vendorID, java.lang.String productID, java.lang.String usbPortAddress, java.util.Hashtable modemPorts)
          Obtains generic modem service
 void releaseModemService(java.lang.String usbPortAddress)
          Releases modem service specified by its USB address
 

Field Detail

SERVICE_NAME

public static final java.lang.String SERVICE_NAME
service name of this interface for the bundle activator (com.esf.device.modem.factory.service.IModemFactoryService)


TYPE_EVDO

public static final int TYPE_EVDO
Type of Modem Factory - EVDO

See Also:
Constant Field Values

TYPE_3G

public static final int TYPE_3G
Type of Modem Factory - 3G

See Also:
Constant Field Values
Method Detail

obtainModemService

public IModemService obtainModemService(java.lang.String vendorID,
                                        java.lang.String productID,
                                        java.lang.String usbPortAddress,
                                        java.util.Hashtable modemPorts)
                                 throws java.lang.Exception
Obtains generic modem service

Parameters:
vendorID - - vendor ID as String
productID - - product IDs as String
usbPortAddress - - USB port address as String
modemPorts - - modem's ttyUSB ports as Hashtable
Returns:
generic modem service as IModemService
Throws:
java.lang.Exception

obtainEvdoModemService

public IEvdoModemService obtainEvdoModemService(java.lang.String vendorID,
                                                java.lang.String productID,
                                                java.lang.String usbPortAddress,
                                                java.util.Hashtable modemPorts)
                                         throws java.lang.Exception
Obtains EVDO modem service

Parameters:
vendorID - - vendor ID as String
productID - - product IDs as String
usbPortAddress - - USB port address as String
modemPorts - - modem's ttyUSB ports as Hashtable
Returns:
EVDO modem service as IEvdoModemService
Throws:
java.lang.Exception

obtain3gModemService

public I3gModemService obtain3gModemService(java.lang.String vendorID,
                                            java.lang.String productID,
                                            java.lang.String usbPortAddress,
                                            java.util.Hashtable modemPorts)
                                     throws java.lang.Exception
Obtains 3G modem service

Parameters:
vendorID - - vendor ID as String
productID - - product ID as String
usbPortAddress - - USB port address as String
modemPorts - - modem's ttyUSB ports as Hashtable
Returns:
3G modem service as I3gModemService
Throws:
java.lang.Exception

getModemServices

public java.util.Hashtable getModemServices()
Reports modem services available

Returns:
list of modem services as Hashtable

releaseModemService

public void releaseModemService(java.lang.String usbPortAddress)
Releases modem service specified by its USB address

Parameters:
usbPortAddress -

getType

public int getType()
Reports type of modem service

Returns:
type of modem service as int


Copyright © 2009 Eurotech Inc. All rights reserved.