Package xal.smf.impl.profile
Enum Class ProfileDevice.MVTVAL
- All Implemented Interfaces:
Serializable
,Comparable<ProfileDevice.MVTVAL>
,Constable
- Enclosing class:
- ProfileDevice
Enumeration of the various motion states. That is, the values of
DevStatus#mvtStatus
.- Since:
- Jan 22, 2010
- 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 ConstantsEnum ConstantDescriptionGeneral motion failureScan actuator is movingScan actuator is stationaryUnknown or undefined motion code, usually indicates error condition -
Method Summary
Modifier and TypeMethodDescriptionint
Return the value of the movement state that this enumeration constant represents.static ProfileDevice.MVTVAL
getMvtFromCode
(int intMvt) Returns the movement enumeration constant for the given movement code value.static ProfileDevice.MVTVAL
Returns the enum constant of this class with the specified name.static ProfileDevice.MVTVAL[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED
Unknown or undefined motion code, usually indicates error condition -
STATIONARY
Scan actuator is stationary -
MOVING
Scan actuator is moving -
FAILURE
General motion failure
-
-
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
-
getMotionCode
public int getMotionCode()Return the value of the movement state that this enumeration constant represents.- Returns:
- motion state value for this enumeration value
- Since:
- Jan 22, 2010
-
getMvtFromCode
Returns the movement enumeration constant for the given movement code value.- Parameters:
intMvt
- code of the movement indicator- Returns:
- corresponding movement enumeration constant for given code,
or
UNDEFINED
if value has no constant - Since:
- Dec 22, 2009
-