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 newAggregatedDataPoint
instance.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
Builder
instance.
-
quality
Sets the quality of the data point.- Parameters:
quality
- The quality to set.- Returns:
- The current
Builder
instance.
-
timestamp
Sets the timestamp of the data point.- Parameters:
timestamp
- The timestamp to set.- Returns:
- The current
Builder
instance.
-
snapshotTimestamp
Sets the snapshot timestamp of the data point.- Parameters:
snapshotTimestamp
- The snapshot timestamp to set.- Returns:
- The current
Builder
instance.
-
build
Builds a newAggregatedDataPoint
instance.- Returns:
- A new
AggregatedDataPoint
instance. - Throws:
IllegalStateException
- If any required fields are missing.
-