Interface ComparableMeasurement
- All Superinterfaces:
Comparable<ComparableMeasurement>,TimeStamped
- All Known Subinterfaces:
ObservedMeasurement<T>
- All Known Implementing Classes:
AbstractInterSatellitesMeasurement,AbstractMeasurement,AbstractOneWayGNSS,AbstractRangeRelatedMeasurement,AngularAzEl,AngularMeasurement,AngularRaDec,BistaticRange,BistaticRangeRate,EstimatedMeasurement,EstimatedMeasurementBase,FDOA,InterSatellitesOneWayRangeRate,InterSatellitesPhase,InterSatellitesRange,MultiplexedMeasurement,OneWayGNSSPhase,OneWayGNSSRange,OneWayGNSSRangeRate,Phase,Position,PseudoMeasurement,PV,Range,RangeRate,SignalBasedMeasurement,TDOA,TurnAroundRange
Base interface for comparing measurements regardless of their type.
- Since:
- 9.2
- Author:
- Luc Maisonobe, Evan M. Ward
-
Method Summary
Modifier and TypeMethodDescriptiondefault intcompareTo(ComparableMeasurement other) double[]Get the observed value.voidsetObservedValue(double[] newObserved) Set the observed value.Methods inherited from interface org.orekit.time.TimeStamped
durationFrom, getDate
-
Method Details
-
getObservedValue
double[] getObservedValue()Get the observed value.The observed value is the value that was measured by the instrument.
- Returns:
- observed value
-
setObservedValue
void setObservedValue(double[] newObserved) Set the observed value.The observed value is the value that was measured by the instrument.
- Parameters:
newObserved- observed value- Since:
- 13.0
-
compareTo
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 likely not be considered equal if they correspond to different instances.
Care should be taken before storing measurements in a
SortedSetas it may lose redundant measurements if they, by chance, have the same identity hash code.- Specified by:
compareToin interfaceComparable<ComparableMeasurement>- See Also:
-