Enum Class ProfileDevice.MVTVAL

java.lang.Object
java.lang.Enum<ProfileDevice.MVTVAL>
xal.smf.impl.profile.ProfileDevice.MVTVAL
All Implemented Interfaces:
Serializable, Comparable<ProfileDevice.MVTVAL>, Constable
Enclosing class:
ProfileDevice

public static enum ProfileDevice.MVTVAL extends Enum<ProfileDevice.MVTVAL>
Enumeration of the various motion states. That is, the values of DevStatus#mvtStatus.
Since:
Jan 22, 2010
Author:
Christopher K. Allen
  • Enum Constant Details

  • Method Details

    • values

      public static ProfileDevice.MVTVAL[] 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

      public static ProfileDevice.MVTVAL valueOf(String name)
      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 name
      NullPointerException - 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

      public static ProfileDevice.MVTVAL getMvtFromCode(int intMvt)
      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