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 DataPointType
type()
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, valueClass
Methods inherited from interface com.inductiveautomation.historian.common.model.data.SnapshotCapable
isSnapshot, snapshotTimestamp
Methods 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:
type
in interfaceDataPoint<V>
- Specified by:
type
in interfaceTemporalPoint<V,
DataPointType> - Returns:
- The type of the atomic point.
-
withSnapshot
Creates a snapshot of the atomic point with the current timestamp.- Specified by:
withSnapshot
in interfaceSnapshotCapable
- Returns:
- A new
AtomicPoint
instance with the current timestamp as the snapshot.
-
withSnapshot
Creates a snapshot of the atomic point with the specified timestamp.- Specified by:
withSnapshot
in interfaceSnapshotCapable
- Parameters:
timestamp
- TheInstant
representing the snapshot timestamp.- Returns:
- A new
AtomicPoint
instance with the specified timestamp as the snapshot.
-