Package org.openhab.core.library.types
Class ArithmeticGroupFunction.NOr
java.lang.Object
org.openhab.core.library.types.ArithmeticGroupFunction.Or
org.openhab.core.library.types.ArithmeticGroupFunction.NOr
- All Implemented Interfaces:
GroupFunction
- Enclosing interface:
- ArithmeticGroupFunction
This does a logical 'nor' operation. The state is 'calculated' by
the normal 'or' operation and than negated by returning the opposite
value. E.g. when the 'or' operation calculates the activeValue the
passiveValue will be returned and vice versa.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.openhab.core.items.GroupFunction
GroupFunction.Equality
-
Field Summary
Fields inherited from class org.openhab.core.library.types.ArithmeticGroupFunction.Or
activeState, passiveState
-
Constructor Summary
-
Method Summary
Methods inherited from class org.openhab.core.library.types.ArithmeticGroupFunction.Or
getParameters, getStateAs
-
Constructor Details
-
NOr
-
-
Method Details
-
calculate
Description copied from interface:GroupFunction
Determines the current state of a group based on a list of items- Specified by:
calculate
in interfaceGroupFunction
- Overrides:
calculate
in classArithmeticGroupFunction.Or
- Parameters:
items
- the items to calculate a group state for- Returns:
- the calculated group state
-