Interface ProtocolAdapterDataSample


  • public interface ProtocolAdapterDataSample
    Interface for data collected by a protocol adapter. One sample can contain multiple data points (= tag values).

    The actual data points can be added via the addDataPoint(DataPoint) method.

    • Method Detail

      • getTimestamp

        @NotNull
        @NotNull Long getTimestamp()
        Returns:
        the timestamp when this data sample was taken.
      • addDataPoint

        void addDataPoint​(@NotNull
                          @NotNull String tagName,
                          @NotNull
                          @NotNull Object tagValue)
        Adds a new data point to this sample.
        Parameters:
        tagName - the name for this data point.
        tagValue - the value for this data point.
      • addDataPoint

        void addDataPoint​(@NotNull
                          @NotNull DataPoint dataPoint)
        Adds a new data point to this sample.
        Parameters:
        dataPoint - the data point.
      • setDataPoints

        void setDataPoints​(@NotNull
                           @NotNull List<DataPoint> list)
        Sets/Overwrites all data points of the sample with the given argument.
        Parameters:
        list - the new list of data points for this sample.