Package org.openhab.core.util
Enum Class LightModel.LedOperatingMode
- All Implemented Interfaces:
Serializable,Comparable<LightModel.LedOperatingMode>,Constable
- Enclosing class:
LightModel
Enum for the LED operating mode
Some brands of light are not able to use the RGB leds and the white led(s) at the same time. So they must be switched between WHITE_ONLY and RGB_ONLY mode. Whereas others lights can use any combination of RGB and White leds at the same time they must be switched COMBINED mode. If the mode is changed at runtime then the color and/or color temperature are updated to be consistent with the new mode, while keeping the brightness the same. If the light does not support color then the mode is forced to WHITE_ONLY.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionoperating with RGB and white LEDs togetheroperating with RGB LEDs onlyoperating with white LED(s) only -
Method Summary
Modifier and TypeMethodDescriptionstatic LightModel.LedOperatingModeReturns the enum constant of this class with the specified name.static LightModel.LedOperatingMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RGB_ONLY
operating with RGB LEDs only -
COMBINED
operating with RGB and white LEDs together -
WHITE_ONLY
operating with white LED(s) only
-
-
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
-