Interface DataPoint<V>
- Type Parameters:
V- The type of the value contained in the data point.
- All Superinterfaces:
Comparable<TemporalPoint<V,,DataPointType>> SnapshotCapable,TemporalPoint<V,DataPointType>
- All Known Subinterfaces:
AggregatedPoint<V,,A> AtomicPoint<V>
- All Known Implementing Classes:
AggregatedDataPoint
public sealed interface DataPoint<V>
extends SnapshotCapable, TemporalPoint<V,DataPointType>
permits AggregatedPoint<V,A>, AtomicPoint<V>
Represents a data point in the historian system.
This sealed interface defines the structure and behavior of a data point, which can either be
an AggregatedPoint or an AtomicPoint. It extends SnapshotCapable and
TemporalPoint to provide snapshot and temporal capabilities.
-
Method Summary
Modifier and TypeMethodDescriptionquality()Retrieves the quality code of the data point.default DataPointTypetype()Retrieves the type of the data point.@Nullable Vvalue()Retrieves the value of the data point.Retrieves the class of the value type.Methods inherited from interface com.inductiveautomation.historian.common.model.data.SnapshotCapable
isSnapshot, snapshotTimestamp, withSnapshot, withSnapshotMethods inherited from interface com.inductiveautomation.historian.common.model.data.TemporalPoint
compareTo, source, timestamp
-
Method Details
-
value
@Nullable V value()Retrieves the value of the data point.- Specified by:
valuein interfaceTemporalPoint<V,DataPointType> - Returns:
- The value of the data point, or
nullif not set.
-
type
Retrieves the type of the data point.By default, this method returns
StandardDataPointType.GENERIC.- Specified by:
typein interfaceTemporalPoint<V,DataPointType> - Returns:
- The type of the data point.
-
quality
QualityCode quality()Retrieves the quality code of the data point.- Returns:
- The quality code of the data point.
-
valueClass
Retrieves the class of the value type.If the value is
null, an emptyOptionalis returned. Otherwise, the class of the value is wrapped in anOptional.- Returns:
- An
Optionalcontaining the class of the value type, or empty if the value isnull.
-