|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jaer.hardwareinterface.usb.linux.HardwareInterfaceFactoryLinux
public class HardwareInterfaceFactoryLinux
Makes hardware interfaces under linux.
Method Summary | |
---|---|
HardwareInterface |
getFirstAvailableInterface()
Gets the first available interface. |
HardwareInterface |
getInterface(int n)
build list of devices and return the n'th one, 0 based |
int |
getNumInterfacesAvailable()
Says how many total of all types of hardware are available |
static java.util.List |
getUsbDevicesWithId(javax.usb.UsbDevice usbDevice,
short vendorId,
short productId)
Get a List of all devices that match the specified vendor and product id. |
static javax.usb.UsbHub |
getVirtualRootUsbHub()
Get the virtual root UsbHub. |
static HardwareInterfaceFactoryLinux |
instance()
Use this instance to access the methods, e.g. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static HardwareInterfaceFactoryLinux instance()
HardwareInterfaceFactoryLinux.instance().getNumInterfacesAvailable()
.
public int getNumInterfacesAvailable()
getNumInterfacesAvailable
in interface HardwareInterfaceFactoryInterface
public HardwareInterface getFirstAvailableInterface()
HardwareInterfaceFactoryInterface
getFirstAvailableInterface
in interface HardwareInterfaceFactoryInterface
public HardwareInterface getInterface(int n)
getInterface
in interface HardwareInterfaceFactoryInterface
n
- the number starting from 0
public static javax.usb.UsbHub getVirtualRootUsbHub()
public static java.util.List getUsbDevicesWithId(javax.usb.UsbDevice usbDevice, short vendorId, short productId)
usbDevice
- The UsbDevice to check.vendorId
- The vendor id to match.productId
- The product id to match.
|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |