Package org.openremote.model.rules.json
Enum Class RuleRecurrence.Scope
- All Implemented Interfaces:
Serializable
,Comparable<RuleRecurrence.Scope>
,Constable
- Enclosing class:
RuleRecurrence
Defines the scope of the recurrence
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic RuleRecurrence.Scope
Returns the enum constant of this class with the specified name.static RuleRecurrence.Scope[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PER_ASSET
Recurrence applies to each asset individually (i.e. timer starts from when rule triggered, each asset that triggered the rule will have their own timer based onRuleRecurrence.mins
value) -
GLOBAL
Recurrence applies globally (i.e. timer starts from when rule triggered, there is a single timer based onRuleRecurrence.mins
value, this rule will not fire again until timer expires)
-
-
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
-