Interface AtomicPoint<V>
- Type Parameters:
V- The type of the value contained in the atomic point.
- All Superinterfaces:
Comparable<TemporalPoint<V,,DataPointType>> DataPoint<V>,SnapshotCapable,TemporalPoint<V,DataPointType>
Represents an atomic data point in the historian system.
This sealed interface extends DataPoint with a value type V and is restricted
to the DataPointFactory.AtomicPointImpl implementation. It provides methods to retrieve
the type of the data point and to create snapshots with or without a specified timestamp.
-
Method Summary
Modifier and TypeMethodDescriptiondefault DataPointTypetype()Retrieves the type of the atomic point.default AtomicPoint<V>Creates a snapshot of the atomic point with the current timestamp.withSnapshot(Instant timestamp) Creates a snapshot of the atomic point with the specified timestamp.Methods inherited from interface com.inductiveautomation.historian.common.model.data.DataPoint
quality, value, valueClassMethods inherited from interface com.inductiveautomation.historian.common.model.data.SnapshotCapable
isSnapshot, snapshotTimestampMethods inherited from interface com.inductiveautomation.historian.common.model.data.TemporalPoint
compareTo, source, timestamp
-
Method Details
-
type
Retrieves the type of the atomic point.By default, this method returns
StandardDataPointType.ATOMIC.- Specified by:
typein interfaceDataPoint<V>- Specified by:
typein interfaceTemporalPoint<V,DataPointType> - Returns:
- The type of the atomic point.
-
withSnapshot
Creates a snapshot of the atomic point with the current timestamp.- Specified by:
withSnapshotin interfaceSnapshotCapable- Returns:
- A new
AtomicPointinstance with the current timestamp as the snapshot.
-
withSnapshot
Creates a snapshot of the atomic point with the specified timestamp.- Specified by:
withSnapshotin interfaceSnapshotCapable- Parameters:
timestamp- TheInstantrepresenting the snapshot timestamp.- Returns:
- A new
AtomicPointinstance with the specified timestamp as the snapshot.
-