Interface TimeStamped

All Known Subinterfaces:
AveragedOrbitalState, ComparableMeasurement, FieldKinematicTransform<T>, FieldStaticTransform<T>, GLONASSOrbitalElements, GNSSClockElements, KinematicTransform, NavigationMessage, NormalizedSphericalHarmonicsProvider.NormalizedSphericalHarmonics, ObservedMeasurement<T>, RawSphericalHarmonicsProvider.RawSphericalHarmonics, SBASOrbitalElements, ShiftablePVCoordinatesHolder<T>, StaticTransform, UnnormalizedSphericalHarmonicsProvider.UnnormalizedSphericalHarmonics
All Known Implementing Classes:
AbsoluteDate, AbsolutePVCoordinates, AbstractAlmanac, AbstractAveragedOrbitalState, AbstractEphemerisMessage, AbstractInterSatellitesMeasurement, AbstractMeasurement, AbstractNavigationMessage, AbstractOneWayGNSS, AbstractRangeRelatedMeasurement, AbstractSolarActivityData.LocalSolarActivity, AbstractSolarActivityDataLoader.LineParameters, AngularAzEl, AngularMeasurement, AngularRaDec, Attitude, AttitudeCovariance, AttitudeState, BeidouAlmanac, BeidouCivilianNavigationMessage, BeidouLegacyNavigationMessage, BistaticRange, BistaticRangeRate, BodiesElements, BrouwerLyddaneOrbitalState, CartesianOrbit, CircularOrbit, CivilianNavigationMessage, ClockDataLine, ClockOffset, CombinedObservationDataSet, CommonGnssData, CPF.CPFCoordinate, CRD.AnglesMeasurement, CRD.Calibration, CRD.CalibrationDetail, CRD.FrRangeMeasurement, CRD.MeteorologicalMeasurement, CRD.NptRangeMeasurement, CRD.RangeMeasurement, CRD.RangeSupplement, CssiSpaceWeatherDataLoader.LineParameters, DateDetector, DateDriver, DelaunayArguments, DSST6X0OrbitalState, DtcDataLoader.LineParameters, EarthOrientationParameterMessage, EcksteinHechlerOrbitalState, EOPEntry, EquinoctialOrbit, EstimatedMeasurement, EstimatedMeasurementBase, EventsLogger.LoggedEvent, FDOA, FieldSingleDateDetector, FieldTransform, GalileoAlmanac, GalileoNavigationMessage, GLONASSAlmanac, GLONASSDate, GLONASSEphemeris, GLONASSFdmaNavigationMessage, GNSSDate, GNSSOrbitalElements, GPSAlmanac, GPSCivilianNavigationMessage, GPSLegacyNavigationMessage, InterSatellitesOneWayRangeRate, InterSatellitesPhase, InterSatellitesRange, IonosphereBaseMessage, IonosphereBDGIMMessage, IonosphereGlonassCdmsMessage, IonosphereKlobucharMessage, IonosphereNavICKlobucharMessage, IonosphereNavICNeQuickNMessage, IonosphereNequickGMessage, KeplerianOrbit, LegacyNavigationMessage, MarshallSolarActivityFutureEstimationLoader.LineParameters, MultiplexedMeasurement, NavICAlmanac, NavICL1NvNavigationMessage, NavICLegacyNavigationMessage, ObservationDataSet, Omm, OneWayGNSSPhase, OneWayGNSSRange, OneWayGNSSRangeRate, Opm, Orbit, OrbitCovariance, OrbitManeuver, Phase, PhysicalEstimatedState, Position, PseudoMeasurement, PV, QZSSAlmanac, QZSSCivilianNavigationMessage, QZSSLegacyNavigationMessage, Range, RangeRate, SBASNavigationMessage, SGP4OrbitalState, SignalBasedMeasurement, SinexEopEntry, SingleDateDetector, SingleDateEventFunction, SOLFSMYDataLoader.LineParameters, SP3Coordinate, SpacecraftState, StateCovariance, SystemTimeOffsetMessage, TDOA, TimeSpanMap.Transition, TimeStampedAngularCoordinates, TimeStampedDouble, TimeStampedDoubleAndDerivative, TimeStampedGeodeticPoint, TimeStampedPair, TimeStampedPVCoordinates, TLE, TrajectoryState, Transform, TurnAroundRange, TypeSvMessage, UTCTAIOffset

public interface TimeStamped
This interface represents objects that have a AbsoluteDate date attached to them.

Classes implementing this interface can be stored chronologically in sorted sets using ChronologicalComparator as the underlying comparator. An example using for Orbit instances is given here:

     SortedSet<Orbit> sortedOrbits =
         new TreeSet<Orbit>(new ChronologicalComparator());
     sortedOrbits.add(orbit1);
     sortedOrbits.add(orbit2);
     ...
 

This interface is also the base interface used to cache series of time-dependent objects for interpolation in a thread-safe manner.

Author:
Luc Maisonobe
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default double
    Compute the physically elapsed duration between two instants.
    Get the date.
  • Method Details

    • getDate

      AbsoluteDate getDate()
      Get the date.
      Returns:
      date attached to the object
    • durationFrom

      default double durationFrom(TimeStamped other)
      Compute the physically elapsed duration between two instants.

      The returned duration is the number of seconds physically elapsed between the two instants, measured in a regular time scale with respect to surface of the Earth (i.e either the TAI scale, the TT scale or the GPS scale). It is the only method that gives a duration with a physical meaning.

      Parameters:
      other - instant to subtract from the instance
      Returns:
      offset in seconds between the two instants (positive if the instance is posterior to the argument)
      Since:
      12.0
      See Also: