Enum PositionBarState

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<PositionBarState>

    public enum PositionBarState
    extends java.lang.Enum<PositionBarState>
    Charging bars status
    Version:
    1.0.0
    Author:
    wmy
    • Enum Constant Detail

      • POSITION_BAR_STATUS_UNKNOWN

        public static final PositionBarState POSITION_BAR_STATUS_UNKNOWN
        Status unknown
      • POSITION_BAR_STATUS_UNLOCKED

        public static final PositionBarState POSITION_BAR_STATUS_UNLOCKED
        Status released
      • POSITION_BAR_STATUS_LOCKED

        public static final PositionBarState POSITION_BAR_STATUS_LOCKED
        Status locked
      • POSITION_BAR_STATUS_FIRST_SET_LOCKING

        public static final PositionBarState POSITION_BAR_STATUS_FIRST_SET_LOCKING
        The first set of charging bars are locking
      • POSITION_BAR_STATUS_SECOND_SET_LOCKING

        public static final PositionBarState POSITION_BAR_STATUS_SECOND_SET_LOCKING
        The second set of charging bars are locking
      • POSITION_BAR_STATUS_UNLOCKING

        public static final PositionBarState POSITION_BAR_STATUS_UNLOCKING
        charging bars are releasing
      • POSITION_BAR_STATUS_FAULT

        public static final PositionBarState POSITION_BAR_STATUS_FAULT
        error status
    • Method Detail

      • values

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

        public static PositionBarState 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
        java.lang.NullPointerException - if the argument is null
      • convert

        public static PositionBarState convert​(int state)
        convert and return the corresponding enumeration value according to the given sequence number
        Parameters:
        state - the given sequence number
        Returns:
        corresponding enumeration value