com.eurotech.framework.usb
Class AbstractUsbDevice

java.lang.Object
  extended by com.eurotech.framework.usb.AbstractUsbDevice
All Implemented Interfaces:
UsbDevice
Direct Known Subclasses:
UsbBlockDevice, UsbModemDevice, UsbNetDevice, UsbTtyDevice

public abstract class AbstractUsbDevice
extends Object
implements UsbDevice

Base class for USB devices


Constructor Summary
AbstractUsbDevice(AbstractUsbDevice usbDevice)
           
AbstractUsbDevice(String vendorId, String productId, String manufacturerName, String productName, String usbBusNumber, String usbDevicePath)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getManufacturerName()
          The manufacturer name of the device
 String getProductId()
          The product ID of the device
 String getProductName()
          The product name of the device
 String getUsbBusNumber()
          The USB bus number of the device
 String getUsbDevicePath()
          The USB device path
 String getUsbPort()
          The complete USB port (USB bus number plus USB device path)
 String getVendorId()
          The vendor ID of the device
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractUsbDevice

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

AbstractUsbDevice

public AbstractUsbDevice(AbstractUsbDevice usbDevice)
Method Detail

getVendorId

public String getVendorId()
Description copied from interface: UsbDevice
The vendor ID of the device

Specified by:
getVendorId in interface UsbDevice
Returns:
The vendor ID of the device

getProductId

public String getProductId()
Description copied from interface: UsbDevice
The product ID of the device

Specified by:
getProductId in interface UsbDevice
Returns:
The product ID of the device

getManufacturerName

public String getManufacturerName()
Description copied from interface: UsbDevice
The manufacturer name of the device

Specified by:
getManufacturerName in interface UsbDevice
Returns:
The manufacturer name of the device

getProductName

public String getProductName()
Description copied from interface: UsbDevice
The product name of the device

Specified by:
getProductName in interface UsbDevice
Returns:
The product name of the device

getUsbBusNumber

public String getUsbBusNumber()
Description copied from interface: UsbDevice
The USB bus number of the device

Specified by:
getUsbBusNumber in interface UsbDevice
Returns:
The USB bus number of the device

getUsbDevicePath

public String getUsbDevicePath()
Description copied from interface: UsbDevice
The USB device path

Specified by:
getUsbDevicePath in interface UsbDevice
Returns:
The USB device path

getUsbPort

public String getUsbPort()
Description copied from interface: UsbDevice
The complete USB port (USB bus number plus USB device path)

Specified by:
getUsbPort in interface UsbDevice
Returns:
The complete USB port (USB bus number plus USB device path)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2013. All Rights Reserved.