Package org.openhab.core.library.types
Class QuantityTypeArithmeticGroupFunction.Median
java.lang.Object
org.openhab.core.library.types.QuantityTypeArithmeticGroupFunction.DimensionalGroupFunction
org.openhab.core.library.types.QuantityTypeArithmeticGroupFunction.Median
- All Implemented Interfaces:
GroupFunction
- Enclosing interface:
QuantityTypeArithmeticGroupFunction
public static class QuantityTypeArithmeticGroupFunction.Median
extends QuantityTypeArithmeticGroupFunction.DimensionalGroupFunction
Calculates the median of a set of item states whose value could be converted to the 'referenceUnit'.
-
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.QuantityTypeArithmeticGroupFunction.DimensionalGroupFunction
baseItemUnit, systemUnit
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.openhab.core.library.types.QuantityTypeArithmeticGroupFunction.DimensionalGroupFunction
getParameters, getStateAs, toQuantityTypesOfUnit
-
Constructor Details
-
Median
public Median(javax.measure.Unit<?> baseItemUnit)
-
-
Method Details
-
calculate
Description copied from interface:GroupFunction
Determines the current state of a group based on a list of items- Parameters:
items
- the items to calculate a group state for- Returns:
- the calculated group state
-