public interface ComparableMeasurement extends TimeStamped, Comparable<ComparableMeasurement>
Modifier and Type | Method and Description |
---|---|
default int |
compareTo(ComparableMeasurement other) |
double[] |
getObservedValue()
Get the observed value.
|
getDate
double[] getObservedValue()
The observed value is the value that was measured by the instrument.
default int compareTo(ComparableMeasurement other)
Measurements comparison is primarily chronological, but measurements
with the same date are sorted based on the observed value. Even if they
have the same value too, they will not be considered equal if they
correspond to different instances. This allows to store measurements in
SortedSet
without losing any measurements, even
redundant ones.
compareTo
in interface Comparable<ComparableMeasurement>
Copyright © 2002-2021 CS GROUP. All rights reserved.