com.eurotech.framework.core.net.modem
Class ModemInterfaceAddressImpl

java.lang.Object
  extended by com.eurotech.framework.core.net.NetInterfaceAddressImpl
      extended by com.eurotech.framework.core.net.modem.ModemInterfaceAddressImpl
All Implemented Interfaces:
ModemInterfaceAddress, NetInterfaceAddress
Direct Known Subclasses:
ModemInterfaceAddressConfigImpl

public class ModemInterfaceAddressImpl
extends NetInterfaceAddressImpl
implements ModemInterfaceAddress


Constructor Summary
ModemInterfaceAddressImpl()
           
ModemInterfaceAddressImpl(ModemInterfaceAddress other)
           
 
Method Summary
 long getBytesReceived()
          Reports number of bytes received during a call
 long getBytesTransmitted()
          Reports number of bytes transmitted during a call
 ModemConnectionStatus getConnectionStatus()
          Reports connection status
 ModemConnectionType getConnectionType()
          Reports Connection Type
 int getSignalStrength()
          Reports signal strength in dBm
 boolean isRoaming()
          Reports roaming status
 void setBytesReceived(long bytesReceived)
           
 void setBytesTransmitted(long bytesTransmitted)
           
 void setConnectionStatus(ModemConnectionStatus connectionStatus)
           
 void setConnectionType(ModemConnectionType connectionType)
           
 void setIsRoaming(boolean isRoaming)
           
 void setSignalStrength(int signalStrength)
           
 
Methods inherited from class com.eurotech.framework.core.net.NetInterfaceAddressImpl
compare, equals, getAddress, getBroadcast, getDnsServers, getGateway, getNetmask, getNetworkPrefixLength, setAddress, setBroadcast, setDnsServers, setGateway, setNetmask, setNetworkPrefixLength
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.eurotech.framework.net.NetInterfaceAddress
getAddress, getBroadcast, getDnsServers, getGateway, getNetmask, getNetworkPrefixLength
 

Constructor Detail

ModemInterfaceAddressImpl

public ModemInterfaceAddressImpl()

ModemInterfaceAddressImpl

public ModemInterfaceAddressImpl(ModemInterfaceAddress other)
Method Detail

getSignalStrength

public int getSignalStrength()
Description copied from interface: ModemInterfaceAddress
Reports signal strength in dBm

Specified by:
getSignalStrength in interface ModemInterfaceAddress
Returns:
signal strength

setSignalStrength

public void setSignalStrength(int signalStrength)

isRoaming

public boolean isRoaming()
Description copied from interface: ModemInterfaceAddress
Reports roaming status

Specified by:
isRoaming in interface ModemInterfaceAddress
Returns:
true - modem is roaming false - modem is not roaming

setIsRoaming

public void setIsRoaming(boolean isRoaming)

getConnectionStatus

public ModemConnectionStatus getConnectionStatus()
Description copied from interface: ModemInterfaceAddress
Reports connection status

Specified by:
getConnectionStatus in interface ModemInterfaceAddress
Returns:
connection status

setConnectionStatus

public void setConnectionStatus(ModemConnectionStatus connectionStatus)

getBytesTransmitted

public long getBytesTransmitted()
Description copied from interface: ModemInterfaceAddress
Reports number of bytes transmitted during a call

Specified by:
getBytesTransmitted in interface ModemInterfaceAddress
Returns:
number of bytes transmitted

setBytesTransmitted

public void setBytesTransmitted(long bytesTransmitted)

getBytesReceived

public long getBytesReceived()
Description copied from interface: ModemInterfaceAddress
Reports number of bytes received during a call

Specified by:
getBytesReceived in interface ModemInterfaceAddress
Returns:
number of bytes received

setBytesReceived

public void setBytesReceived(long bytesReceived)

getConnectionType

public ModemConnectionType getConnectionType()
Description copied from interface: ModemInterfaceAddress
Reports Connection Type

Specified by:
getConnectionType in interface ModemInterfaceAddress
Returns:
connection type

setConnectionType

public void setConnectionType(ModemConnectionType connectionType)


Copyright © 2013. All Rights Reserved.