com.eurotech.framework.usb
Class UsbModemDevice
java.lang.Object
com.eurotech.framework.usb.AbstractUsbDevice
com.eurotech.framework.usb.UsbModemDevice
- All Implemented Interfaces:
- ModemDevice, UsbDevice
public class UsbModemDevice
- extends AbstractUsbDevice
- implements ModemDevice
Representation of USB modem devices
UsbModemDevice
public UsbModemDevice(String vendorId,
String productId,
String manufacturerName,
String productName,
String usbBusNumber,
String usbDevicePath)
UsbModemDevice
public UsbModemDevice(AbstractUsbDevice usbDevice)
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.