Package xal.extension.wirescan.profile
Enum Class ProfileData.DeviceType
- All Implemented Interfaces:
Serializable
,Comparable<ProfileData.DeviceType>
,Constable
- Enclosing class:
- ProfileData
Enumeration of known profile measurement device types.
NOTE:Currently this class is not used.
- Author:
- Christopher K. Allen
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturn the device type identifier string corresponding to this type.static ProfileData.DeviceType
typeFromDeviceId
(String strDevId) Return the device type which is inferred from the given device identifier string.static ProfileData.DeviceType
Returns the enum constant of this class with the specified name.static ProfileData.DeviceType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WIRESCANNER
-
WIREHARP
-
LASERSCANNER
-
UNKNOWN
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getTypeId
Return the device type identifier string corresponding to this type.- Returns:
- device type identifier string
-
typeFromDeviceId
Return the device type which is inferred from the given device identifier string. Specifically, we assume that the device identifier stringstrDevId
is prefixed by the (two-character) device type string. If the first two characters ofstrDevId
are not a recognized device type identifier string, the device typeUNKNOWN
is returned.- Parameters:
strDevId
- device identifier string- Returns:
DeviceType
object corresponding to given device id
-