usb.windows
Class USB

java.lang.Object
  |
  +--usb.windows.USB
All Implemented Interfaces:
Bus

public class USB
extends java.lang.Object
implements Bus

Represents a Universal Serial Bus (USB) which hosts a set of devices. Such busses are largely autoconfiguring. Aspects such as power managemnet and detailed device configuration involve policy choices.


Method Summary
 java.lang.String getBusId()
          Returns the host controller name for this Universal Serial Bus
 int getBusNum()
          Returns the number assigned to this bus
 Device getDevice(int address)
          Returns the device with the given address.
 Host getHost()
          Returns the USB host for this bus
 Device getRootHub()
          Returns the root hub of that bus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getHost

public Host getHost()
Returns the USB host for this bus

Specified by:
getHost in interface Bus

getBusNum

public int getBusNum()
Returns the number assigned to this bus


getBusId

public java.lang.String getBusId()
Returns the host controller name for this Universal Serial Bus

Specified by:
getBusId in interface Bus

getDevice

public Device getDevice(int address)
                 throws java.io.IOException
Returns the device with the given address.

Specified by:
getDevice in interface Bus
Parameters:
address - The device address
0: Always the root hub 1..126: devices or hubs or null
java.io.IOException
See Also:
Device.getAddress()

getRootHub

public Device getRootHub()
                  throws java.io.IOException
Returns the root hub of that bus

Specified by:
getRootHub in interface Bus
java.io.IOException