com.ibm.jusb
Class VirtualRootUsbHubImp

java.lang.Object
  extended by com.ibm.jusb.UsbDeviceImp
      extended by com.ibm.jusb.UsbHubImp
          extended by com.ibm.jusb.VirtualRootUsbHubImp
All Implemented Interfaces:
UsbIrpImp.UsbIrpImpListener, java.util.EventListener, UsbDevice, UsbHub

public class VirtualRootUsbHubImp
extends UsbHubImp
implements UsbHub

Virtual root UsbHub implementation.

Author:
Dan Streetman

Field Summary
static byte CONFIG_NUM
           
static short CONFIG_TOTAL_LEN
           
static byte[] configurationDescriptorBytes
           
static short DEVICE_BCD
           
static byte[] deviceDescriptorBytes
           
static java.lang.String ENCODING
           
static byte INTERFACE_NUM
           
static byte MANUFACTURER_INDEX
           
static java.lang.String MANUFACTURER_STRING
           
static short PRODUCT_ID
           
static byte PRODUCT_INDEX
           
static java.lang.String PRODUCT_STRING
           
static byte SERIALNUMBER_INDEX
           
static java.lang.String SERIALNUMBER_STRING
           
static byte SETTING_NUM
           
static byte[] stringLangId
           
static short USB_BCD
           
static short VENDOR_ID
           
static java.lang.String VIRTUAL_ROOT_USBHUB_SUBMIT_STRING
           
static UsbConfigurationDescriptorImp virtualConfigurationDescriptor
           
static UsbDeviceDescriptorImp virtualDeviceDescriptor
           
static UsbInterfaceDescriptorImp virtualInterfaceDescriptor
           
 
Fields inherited from class com.ibm.jusb.UsbHubImp
USB_HUB_MAX_PORTS, USB_HUB_MIN_PORTS
 
Fields inherited from class com.ibm.jusb.UsbDeviceImp
CREATE_SHORT_PACKET_EXCEPTION_POLICY_KEY, DCP_QUEUE_POLICY_KEY
 
Constructor Summary
VirtualRootUsbHubImp()
           
 
Method Summary
 void connect(UsbHubImp hub, byte portNumber)
          No connect operation
 void disconnect()
          No disconnect
 UsbPortImp getParentUsbPortImp()
          No UsbPort use
 boolean isRootUsbHub()
          If this is the virtual root hub.
 void setParentUsbPortImp(UsbPortImp port)
          No UsbPort use
 
Methods inherited from class com.ibm.jusb.UsbHubImp
addUsbDeviceImp, getAttachedUsbDevices, getNumberOfPorts, getUsbPort, getUsbPortImp, getUsbPorts, isUsbHub, removeUsbDeviceImp, resize
 
Methods inherited from class com.ibm.jusb.UsbDeviceImp
addUsbConfigurationImp, addUsbDeviceListener, asyncSubmit, asyncSubmit, containsUsbConfiguration, createUsbControlIrp, getActiveUsbConfiguration, getActiveUsbConfigurationImp, getActiveUsbConfigurationNumber, getCachedUsbStringDescriptor, getManufacturerString, getParentUsbPort, getProductString, getSerialNumberString, getSpeed, getString, getUsbConfiguration, getUsbConfigurationImp, getUsbConfigurations, getUsbDeviceDescriptor, getUsbDeviceOsImp, getUsbStringDescriptor, isConfigured, removeUsbDeviceListener, setActiveUsbConfigurationNumber, setCachedUsbStringDescriptor, setSpeed, setUsbDeviceDescriptor, setUsbDeviceOsImp, syncSubmit, syncSubmit, usbIrpImpComplete
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.usb.UsbHub
getAttachedUsbDevices, getNumberOfPorts, getUsbPort, getUsbPorts
 
Methods inherited from interface javax.usb.UsbDevice
addUsbDeviceListener, asyncSubmit, asyncSubmit, containsUsbConfiguration, createUsbControlIrp, getActiveUsbConfiguration, getActiveUsbConfigurationNumber, getManufacturerString, getParentUsbPort, getProductString, getSerialNumberString, getSpeed, getString, getUsbConfiguration, getUsbConfigurations, getUsbDeviceDescriptor, getUsbStringDescriptor, isConfigured, isUsbHub, removeUsbDeviceListener, syncSubmit, syncSubmit
 

Field Detail

MANUFACTURER_INDEX

public static final byte MANUFACTURER_INDEX
See Also:
Constant Field Values

PRODUCT_INDEX

public static final byte PRODUCT_INDEX
See Also:
Constant Field Values

SERIALNUMBER_INDEX

public static final byte SERIALNUMBER_INDEX
See Also:
Constant Field Values

MANUFACTURER_STRING

public static final java.lang.String MANUFACTURER_STRING
See Also:
Constant Field Values

PRODUCT_STRING

public static final java.lang.String PRODUCT_STRING
See Also:
Constant Field Values

SERIALNUMBER_STRING

public static final java.lang.String SERIALNUMBER_STRING
See Also:
Constant Field Values

ENCODING

public static final java.lang.String ENCODING
See Also:
Constant Field Values

VIRTUAL_ROOT_USBHUB_SUBMIT_STRING

public static final java.lang.String VIRTUAL_ROOT_USBHUB_SUBMIT_STRING
See Also:
Constant Field Values

VENDOR_ID

public static final short VENDOR_ID
See Also:
Constant Field Values

PRODUCT_ID

public static final short PRODUCT_ID
See Also:
Constant Field Values

DEVICE_BCD

public static final short DEVICE_BCD
See Also:
Constant Field Values

USB_BCD

public static final short USB_BCD
See Also:
Constant Field Values

CONFIG_NUM

public static final byte CONFIG_NUM
See Also:
Constant Field Values

CONFIG_TOTAL_LEN

public static final short CONFIG_TOTAL_LEN
See Also:
Constant Field Values

INTERFACE_NUM

public static final byte INTERFACE_NUM
See Also:
Constant Field Values

SETTING_NUM

public static final byte SETTING_NUM
See Also:
Constant Field Values

stringLangId

public static final byte[] stringLangId

deviceDescriptorBytes

public static final byte[] deviceDescriptorBytes

virtualDeviceDescriptor

public static final UsbDeviceDescriptorImp virtualDeviceDescriptor

configurationDescriptorBytes

public static final byte[] configurationDescriptorBytes

virtualConfigurationDescriptor

public static final UsbConfigurationDescriptorImp virtualConfigurationDescriptor

virtualInterfaceDescriptor

public static final UsbInterfaceDescriptorImp virtualInterfaceDescriptor
Constructor Detail

VirtualRootUsbHubImp

public VirtualRootUsbHubImp()
Method Detail

connect

public void connect(UsbHubImp hub,
                    byte portNumber)
             throws UsbException
No connect operation

Overrides:
connect in class UsbDeviceImp
Parameters:
hub - The parent.
portNumber - The port on the parent this is connected to.
Throws:
UsbException

isRootUsbHub

public boolean isRootUsbHub()
Description copied from interface: UsbHub
If this is the virtual root hub.

Specified by:
isRootUsbHub in interface UsbHub
Overrides:
isRootUsbHub in class UsbHubImp
Returns:
true if this is the virtual root hub

disconnect

public void disconnect()
No disconnect

Overrides:
disconnect in class UsbDeviceImp

setParentUsbPortImp

public void setParentUsbPortImp(UsbPortImp port)
No UsbPort use

Overrides:
setParentUsbPortImp in class UsbDeviceImp
Parameters:
port - The parent port

getParentUsbPortImp

public UsbPortImp getParentUsbPortImp()
No UsbPort use

Overrides:
getParentUsbPortImp in class UsbDeviceImp
Returns:
The port that this device is attached to