com.eurotech.framework.usb
Class UsbModemDevice

java.lang.Object
  extended by com.eurotech.framework.usb.AbstractUsbDevice
      extended by com.eurotech.framework.usb.UsbModemDevice
All Implemented Interfaces:
ModemDevice, UsbDevice

public class UsbModemDevice
extends AbstractUsbDevice
implements ModemDevice

Representation of USB modem devices


Constructor Summary
UsbModemDevice(AbstractUsbDevice usbDevice)
           
UsbModemDevice(String vendorId, String productId, String manufacturerName, String productName, String usbBusNumber, String usbDevicePath)
           
 
Method Summary
 void addBlockDev(String blockDev)
           
 void addTtyDev(String ttyDev)
           
 boolean equals(Object obj)
           
 List<String> getBlockDevs()
           
 List<String> getSerialPorts()
           
 List<String> getTtyDevs()
           
 int hashCode()
           
 boolean removeBlockDev(String blockDev)
           
 boolean removeTtyDev(String ttyDev)
           
 String toString()
           
 
Methods inherited from class com.eurotech.framework.usb.AbstractUsbDevice
getManufacturerName, getProductId, getProductName, getUsbBusNumber, getUsbDevicePath, getUsbPort, getVendorId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.eurotech.framework.net.modem.ModemDevice
getManufacturerName, getProductName
 

Constructor Detail

UsbModemDevice

public UsbModemDevice(String vendorId,
                      String productId,
                      String manufacturerName,
                      String productName,
                      String usbBusNumber,
                      String usbDevicePath)

UsbModemDevice

public UsbModemDevice(AbstractUsbDevice usbDevice)
Method Detail

getSerialPorts

public List<String> getSerialPorts()
Specified by:
getSerialPorts in interface ModemDevice

getTtyDevs

public List<String> getTtyDevs()
Returns:
sorted list of tty devs

getBlockDevs

public List<String> getBlockDevs()
Returns:
sorted list of block devs

addTtyDev

public void addTtyDev(String ttyDev)

addBlockDev

public void addBlockDev(String blockDev)

removeTtyDev

public boolean removeTtyDev(String ttyDev)

removeBlockDev

public boolean removeBlockDev(String blockDev)

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractUsbDevice

equals

public boolean equals(Object obj)
Overrides:
equals in class AbstractUsbDevice

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.