/* * Java libusb wrapper * Copyright (c) 2005-2006 Andreas Schläpfer * * http://libusbjava.sourceforge.net * This library is covered by the LGPL, read LGPL.txt for details. */ package ch.ntb.usb; /** * Represents an USB bus.
* This is the root class for the representation of the libusb USB structure. * Zero or more devices may be connected to an USB bus. * */ public class Usb_Bus { private Usb_Bus next, prev; private String dirname; private Usb_Device devices; private long location; private Usb_Device root_dev; /** * Get the first device ojects of the devices linked list.
* * @return the first device ojects of the devices linked list or null */ public Usb_Device getDevices() { return devices; } /** * Returns the systems String representation of the bus.
* * @return the systems String representation of the bus */ public String getDirname() { return dirname; } /** * Returns the next bus object.
* * @return Returns the next bus object or null */ public Usb_Bus getNext() { return next; } /** * Returns the previous bus object.
* * @return Returns the previous bus object or null */ public Usb_Bus getPrev() { return prev; } /** * Get the root device of this bus.
* * @return the root device oject or null */ public Usb_Device getRootDev() { return root_dev; } /** * Returns the location in the USB bus linked list.
* * @return the location in the USB bus linked list */ public long getLocation() { return location; } @Override public String toString() { return "Usb_Bus " + dirname; } }