com.esf.device.modem.service
Class CellularModem

java.lang.Object
  extended by com.esf.device.modem.service.CellularModem
All Implemented Interfaces:
ICellularModemService
Direct Known Subclasses:
UsbModem

public class CellularModem
extends java.lang.Object
implements ICellularModemService

Defines CellularModem class

Author:
ilya.binshtok

Constructor Summary
CellularModem()
           
 
Method Summary
 void disable()
          disables modem
 void enable()
          enables modem
 java.lang.String getManufacturer()
          Returns modem's manufacturer identification
 java.lang.String getModel()
          Reports modem's model
 java.lang.String[] getRevisionID()
          Reports modem's revision identification
 java.lang.String getSerialNumber()
          Answers modem's serial number
 boolean isEnabled()
          Answers if cellular modem is enabled by application
default value is set to true
 boolean isOn()
          Answers if modem is on
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CellularModem

public CellularModem()
Method Detail

isOn

public boolean isOn()
Description copied from interface: ICellularModemService
Answers if modem is on

Specified by:
isOn in interface ICellularModemService
Returns:
true - modem is on
false - modem is off

enable

public void enable()
Description copied from interface: ICellularModemService
enables modem

Specified by:
enable in interface ICellularModemService

disable

public void disable()
Description copied from interface: ICellularModemService
disables modem

Specified by:
disable in interface ICellularModemService

isEnabled

public boolean isEnabled()
Description copied from interface: ICellularModemService
Answers if cellular modem is enabled by application
default value is set to true

Specified by:
isEnabled in interface ICellularModemService
Returns:
true - modem is enabled
false - modem is disabled

getModel

public java.lang.String getModel()
Description copied from interface: ICellularModemService
Reports modem's model

Specified by:
getModel in interface ICellularModemService
Returns:
model, null if not known

getManufacturer

public java.lang.String getManufacturer()
Description copied from interface: ICellularModemService
Returns modem's manufacturer identification

Specified by:
getManufacturer in interface ICellularModemService
Returns:
manufacturer, null if not known

getSerialNumber

public java.lang.String getSerialNumber()
Description copied from interface: ICellularModemService
Answers modem's serial number

Specified by:
getSerialNumber in interface ICellularModemService
Returns:
ESN, null if not known

getRevisionID

public java.lang.String[] getRevisionID()
Description copied from interface: ICellularModemService
Reports modem's revision identification

Specified by:
getRevisionID in interface ICellularModemService
Returns:
array of revision ID's, null if not known