Uses of Class
com.storedobject.iot.Data
Packages that use Data
-
Uses of Data in com.storedobject.iot
Methods in com.storedobject.iot with type parameters of type DataModifier and TypeMethodDescriptionstatic <IOT extends Data>
IOTGet the latest data record collected.<IOT extends Data>
IOTValueDefinition.getLatestData
(Id unitId) Data.getStateChanged
(Class<D> dataClass, Id unitId, String variable, long from, long to, boolean toTrue) Determines the number of state changes for a specified variable of a given data class for a specific unit within a specified time range.Data.getStateChanged
(Class<D> dataClass, Id unitId, String variable, PeriodType periodType, int periodCount, boolean toTrue) Determines the state changes of a specific variable within a given period of time.static <D extends Data>
Data.ValueData.getValueAt
(Class<D> dataClass, Id unitId, String variable, long collectedAt, Duration timeSpan) Get the data value collected at the given instance.static <D extends Data>
intData.getValueCount
(Class<D> dataClass, Id unitId, String variable, int value, long from, long to) Computes the number of occurrences of a specific variable with a specified value for a given data class and unit within a defined time range.static <D extends Data>
intData.getValueCount
(Class<D> dataClass, Id unitId, String variable, int value, PeriodType periodType, int periodCount) Calculates the number of occurrences of a specific variable with a given value for a specified data class and unit within a defined time period.Data.getValueDifference
(Class<D> dataClass, Id unitId, String variable, long from, long to) Get the difference in data value collected at 2 different time instances.Data.getValueDifference
(Class<D> dataClass, Id unitId, String variable, PeriodType periodType, int periodCount) Calculates the difference in the values of a specified variable for a given data class and unit within a specified time period.Methods in com.storedobject.iot that return DataModifier and TypeMethodDescriptionstatic Data
MQTT.getData
(ValueDefinition<?> valueDefinition, Id unitId) Methods in com.storedobject.iot that return types with arguments of type DataMethods in com.storedobject.iot with parameters of type DataMethod parameters in com.storedobject.iot with type arguments of type DataModifier and TypeMethodDescriptionvoid
static ConsumptionCalculator
Creates a ConsumptionCalculator instance to compute the difference in values of a specific variable for a given data class between the specified time range.static ConsumptionCalculator
ConsumptionCalculator.create
(Class<? extends Data> dataClass, String variable, boolean toTrue, double multiplier) Creates a ConsumptionCalculator instance that computes consumption based on state changes of the specified variable within the provided data class.static ConsumptionCalculator
Creates a ConsumptionCalculator instance with a specified multiplier to adjust the computed value.Data.getUnitClass
(Class<? extends Data> dataClass) Get the Unit's class for the given data class. -
Uses of Data in com.storedobject.ui.iot
Classes in com.storedobject.ui.iot with type parameters of type DataMethods in com.storedobject.ui.iot that return types with arguments of type DataModifier and TypeMethodDescriptionData4Unit.dataClass()
Returns the value of thedataClass
record component.Constructor parameters in com.storedobject.ui.iot with type arguments of type DataModifierConstructorDescriptionData4Unit
(Class<? extends Data> dataClass, Unit unit, TimestampPeriod period, long timeSlice, Collection<String> attributes) Creates an instance of aData4Unit
record class.