onbon.bx06.cmd.led
Enum ModifyBrightnessCmd.ModeType

java.lang.Object
  extended by java.lang.Enum<ModifyBrightnessCmd.ModeType>
      extended by onbon.bx06.cmd.led.ModifyBrightnessCmd.ModeType
All Implemented Interfaces:
Serializable, Comparable<ModifyBrightnessCmd.ModeType>
Enclosing class:
ModifyBrightnessCmd

public static enum ModifyBrightnessCmd.ModeType
extends Enum<ModifyBrightnessCmd.ModeType>

亮度调整模式。

Author:
ONBON

Enum Constant Summary
CLOCK
          定时调亮。以半小时为单位调整亮度。
MANUAL
          手动调亮。全时区单一亮度值。
SENSOR_AUTO
          传感器自动偵測。
SENSOR_WITH_ENV
          传感器使用客制化环境條件检测亮度。
 
Field Summary
 byte value
           
 
Method Summary
static ModifyBrightnessCmd.ModeType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ModifyBrightnessCmd.ModeType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SENSOR_WITH_ENV

public static final ModifyBrightnessCmd.ModeType SENSOR_WITH_ENV
传感器使用客制化环境條件检测亮度。


SENSOR_AUTO

public static final ModifyBrightnessCmd.ModeType SENSOR_AUTO
传感器自动偵測。


CLOCK

public static final ModifyBrightnessCmd.ModeType CLOCK
定时调亮。以半小时为单位调整亮度。


MANUAL

public static final ModifyBrightnessCmd.ModeType MANUAL
手动调亮。全时区单一亮度值。

Field Detail

value

public final byte value
Method Detail

values

public static ModifyBrightnessCmd.ModeType[] 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 (ModifyBrightnessCmd.ModeType c : ModifyBrightnessCmd.ModeType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ModifyBrightnessCmd.ModeType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2020 onbon. All rights reserved.