Class AggregatedDataPoint.Builder<V,A extends AggregationType>
java.lang.Object
com.inductiveautomation.historian.common.model.data.AggregatedDataPoint.Builder<V,A>
- Type Parameters:
V- The type of the value.A- The type of the aggregation, extendingAggregationType.
- Enclosing class:
- AggregatedDataPoint<V,
A extends AggregationType>
Builder class for constructing
AggregatedDataPoint instances.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newAggregatedDataPointinstance.quality(QualityCode quality) Sets the quality of the data point.snapshotTimestamp(Instant snapshotTimestamp) Sets the snapshot timestamp of the data point.Sets the timestamp of the data point.Sets the value of the data point.
-
Method Details
-
value
Sets the value of the data point.- Parameters:
value- The value to set.- Returns:
- The current
Builderinstance.
-
quality
Sets the quality of the data point.- Parameters:
quality- The quality to set.- Returns:
- The current
Builderinstance.
-
timestamp
Sets the timestamp of the data point.- Parameters:
timestamp- The timestamp to set.- Returns:
- The current
Builderinstance.
-
snapshotTimestamp
Sets the snapshot timestamp of the data point.- Parameters:
snapshotTimestamp- The snapshot timestamp to set.- Returns:
- The current
Builderinstance.
-
build
Builds a newAggregatedDataPointinstance.- Returns:
- A new
AggregatedDataPointinstance. - Throws:
IllegalStateException- If any required fields are missing.
-