Enum ConfigParameter

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

    public enum ConfigParameter
    extends java.lang.Enum<ConfigParameter>
    Configuration parameters sequence number
    Version:
    1.0.0
    Author:
    wmy
    • Enum Constant Detail

      • SERVICE_PARAM_VERSION

        public static final ConfigParameter SERVICE_PARAM_VERSION
        Version information for configuration parameters
      • SERVICE_PARAM_POST_RATE_CANOPY

        public static final ConfigParameter SERVICE_PARAM_POST_RATE_CANOPY
        Frequency of reporting of canopy component properties
      • SERVICE_PARAM_POST_RATE_POSBAR

        public static final ConfigParameter SERVICE_PARAM_POST_RATE_POSBAR
        Frequency of reporting the charge bars component properties
      • SERVICE_PARAM_POST_RATE_CD

        public static final ConfigParameter SERVICE_PARAM_POST_RATE_CD
        Frequency of reporting of charging component properties
      • SERVICE_PARAM_POST_RATE_EDGE

        public static final ConfigParameter SERVICE_PARAM_POST_RATE_EDGE
        Frequency of reporting of edge computing module component properties
      • SERVICE_PARAM_BATTERY_TYPE

        public static final ConfigParameter SERVICE_PARAM_BATTERY_TYPE
        Battery serial number selection
      • SERVICE_PARAM_COOL_SETPOINT

        public static final ConfigParameter SERVICE_PARAM_COOL_SETPOINT
        Air conditioning cooling start temperature
      • SERVICE_PARAM_HEAT_SETPOINT

        public static final ConfigParameter SERVICE_PARAM_HEAT_SETPOINT
        Air conditioning heating start temperature
      • SERVICE_PARAM_AIR_ROOM_MAXTEM

        public static final ConfigParameter SERVICE_PARAM_AIR_ROOM_MAXTEM
        Maximum temperature of drone cabin
      • SERVICE_PARAM_AIR_ROOM_MINTEM

        public static final ConfigParameter SERVICE_PARAM_AIR_ROOM_MINTEM
        Minimum temperature of drone cabin
      • SERVICE_PARAM_POST_RATE_AC

        public static final ConfigParameter SERVICE_PARAM_POST_RATE_AC
        Frequency of reporting of air conditioner component properties
      • SERVICE_PARAM_POST_RATE_RC

        public static final ConfigParameter SERVICE_PARAM_POST_RATE_RC
        Frequency of reporting of remote control component properties
      • SERVICE_PARAM_STRIP_LIGHT_BRIGHTNESS

        public static final ConfigParameter SERVICE_PARAM_STRIP_LIGHT_BRIGHTNESS
        Percentage brightness of strip light
      • SERVICE_PARAM_CANOPY_DELAY_TIME

        public static final ConfigParameter SERVICE_PARAM_CANOPY_DELAY_TIME
        The time from touching the limiter to stopping when opening or closing the canopy
    • Method Detail

      • values

        public static ConfigParameter[] 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 (ConfigParameter c : ConfigParameter.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ConfigParameter 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
      • getValue

        public int getValue()
        Returns:
        Get the enumerated sequence number
      • convert

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