com.acces.aiousb
Class DeviceSubsystem

java.lang.Object
  extended by com.acces.aiousb.DeviceSubsystem
Direct Known Subclasses:
AnalogInputSubsystem, AnalogOutputSubsystem, DigitalIOSubsystem

public abstract class DeviceSubsystem
extends java.lang.Object

Class DeviceSubsystem is the abstract super class for all device subsystems.


Constructor Summary
DeviceSubsystem(USBDevice parent)
          Constructor for subsystem.
 
Method Summary
 int getDeviceIndex()
          Gets the device index on the bus.
abstract  java.io.PrintStream print(java.io.PrintStream stream)
          Prints the properties of this subsystem.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeviceSubsystem

public DeviceSubsystem(USBDevice parent)
Constructor for subsystem.

Parameters:
parent - the parent USB device object that this subsystem is a part of.
Method Detail

print

public abstract java.io.PrintStream print(java.io.PrintStream stream)
Prints the properties of this subsystem. Mainly useful for diagnostic purposes.

Parameters:
stream - the print stream where properties will be printed.
Returns:
The print stream.

getDeviceIndex

public int getDeviceIndex()
Gets the device index on the bus. The device index is mainly for reference and for differentiating between devices of the same type which reside on the bus. The device index is not used within the Java library, but within the underlying AIOUSB module.

Returns:
Device index, numbered 0 to n-1.