com.ionetrics.lib.annotatorcomm
Enum DeviceId

java.lang.Object
  extended by java.lang.Enum<DeviceId>
      extended by com.ionetrics.lib.annotatorcomm.DeviceId
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DeviceId>

public enum DeviceId
extends java.lang.Enum<DeviceId>

Device Identification


Enum Constant Summary
ANNOTATOR_I
          Annotator Jr Device I
ANNOTATOR_II
          Annotator Jr Device II
ANNOTATOR_III
          Annotator Jr Device III
ANNOTATOR_JR
          Annotator Jr Device ID
 
Method Summary
 int getDeviceId()
          Get the Device ID.
 java.lang.String toString()
          Get the device name.
static DeviceId valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DeviceId[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ANNOTATOR_JR

public static final DeviceId ANNOTATOR_JR
Annotator Jr Device ID


ANNOTATOR_I

public static final DeviceId ANNOTATOR_I
Annotator Jr Device I


ANNOTATOR_II

public static final DeviceId ANNOTATOR_II
Annotator Jr Device II


ANNOTATOR_III

public static final DeviceId ANNOTATOR_III
Annotator Jr Device III

Method Detail

values

public static final DeviceId[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(DeviceId c : DeviceId.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static DeviceId valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

getDeviceId

public int getDeviceId()
Get the Device ID.

Returns:
Device ID

toString

public java.lang.String toString()
Get the device name.

Overrides:
toString in class java.lang.Enum<DeviceId>
Returns:
device name


Copyright © 2006 Ionetrics Corp. All Rights Reserved.