Package org.openhab.core.automation
Enum Class RuleStatus
- All Implemented Interfaces:
Serializable
,Comparable<RuleStatus>
,Constable
This enumeration is used to present the main status of a
Rule
.
From/To | UNINITIALIZED |
INITIALIZING |
IDLE |
RUNNING |
UNINITIALIZED |
N/A |
|
N/A | N/A |
INITIALIZING |
Resolving fails, Disable rule | N/A | Resolving succeeds | N/A |
IDLE |
|
N/A | N/A |
runNow |
RUNNING |
|
N/A | Execution finished | N/A |
- Author:
- Yordan Mihaylov - Initial contribution, Kai Kreuzer - Refactored to match ThingStatus implementation, Ana Dimova - add java doc
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
Gets the value of a rule status.static RuleStatus
Returns the enum constant of this class with the specified name.static RuleStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNINITIALIZED
-
INITIALIZING
-
IDLE
-
RUNNING
-
-
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
-
getValue
public int getValue()Gets the value of a rule status.- Returns:
- the value
-