com.universaldevices.device.model
Class UDDeviceType

java.lang.Object
  extended by com.universaldevices.device.model.UDDeviceType
All Implemented Interfaces:
java.lang.Comparable<UDDeviceType>

public class UDDeviceType
extends java.lang.Object
implements java.lang.Comparable<UDDeviceType>


Field Summary
 int basic
           
 int generic
           
 int mid
           
 int pid
           
 int specific
           
 int tid
           
 java.lang.String typeReadable
           
 
Constructor Summary
UDDeviceType(int[] genVals, int[] mfgVals)
          Set the device type.
UDDeviceType(int basic, int generic, int specific)
           
UDDeviceType(int basic, int generic, int specific, int mid, int tid, int pid)
           
 
Method Summary
 int compareTo(UDDeviceType t)
           
 java.lang.String readable()
          Return a readable version of the type (e.g.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

basic

public final int basic

generic

public final int generic

specific

public final int specific

mid

public final int mid

tid

public final int tid

pid

public final int pid

typeReadable

public final java.lang.String typeReadable
Constructor Detail

UDDeviceType

public UDDeviceType(int basic,
                    int generic,
                    int specific)

UDDeviceType

public UDDeviceType(int[] genVals,
                    int[] mfgVals)
Set the device type.

Parameters:
genVals - Array of ints, [0] basic, [1] generic, [2] specific
mfgVals - Array of ints, [0] mid, [1] tid, [2] pid

UDDeviceType

public UDDeviceType(int basic,
                    int generic,
                    int specific,
                    int mid,
                    int tid,
                    int pid)
Method Detail

readable

public java.lang.String readable()
Return a readable version of the type (e.g. "34.55.34:56.13.1", "31.0.0")


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

compareTo

public int compareTo(UDDeviceType t)
Specified by:
compareTo in interface java.lang.Comparable<UDDeviceType>