Interface FieldTimeStamped<T extends CalculusFieldElement<T>>

Type Parameters:
T - type of the field elements
All Known Subinterfaces:
FieldGNSSClockElements<T>, ShiftableFieldPVCoordinatesHolder<S,T>
All Known Implementing Classes:
FieldAbsoluteDate, FieldAbsolutePVCoordinates, FieldAbstractAlmanac, FieldAbstractNavigationMessage, FieldAttitude, FieldBeidouAlmanac, FieldBeidouCivilianNavigationMessage, FieldBeidouLegacyNavigationMessage, FieldBodiesElements, FieldCartesianOrbit, FieldCircularOrbit, FieldCivilianNavigationMessage, FieldClockOffset, FieldCommonGnssData, FieldDateDetector, FieldDelaunayArguments, FieldEquinoctialOrbit, FieldGalileoAlmanac, FieldGalileoNavigationMessage, FieldGnssOrbitalElements, FieldGPSAlmanac, FieldGPSCivilianNavigationMessage, FieldGPSLegacyNavigationMessage, FieldKeplerianOrbit, FieldLegacyNavigationMessage, FieldNavICAlmanac, FieldNavicL1NvNavigationMessage, FieldNavicLegacyNavigationMessage, FieldOrbit, FieldQZSSAlmanac, FieldQZSSCivilianNavigationMessage, FieldQZSSLegacyNavigationMessage, FieldSpacecraftState, FieldStateCovariance, FieldTimeSpanMap.Transition, FieldTimeStampedGeodeticPoint, FieldTimeStampedPair, FieldTLE, TimeStampedField, TimeStampedFieldAngularCoordinates, TimeStampedFieldPVCoordinates

public interface FieldTimeStamped<T extends CalculusFieldElement<T>>
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 Details

    • getDate

      FieldAbsoluteDate<T> getDate()
      Get the date.
      Returns:
      date attached to the object
    • durationFrom

      default T durationFrom(FieldTimeStamped<T> 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:
    • durationFrom

      default T durationFrom(TimeStamped timeStamped)
      Compute the physically elapsed duration between two instants.
      Parameters:
      timeStamped - instant to subtract from the instance
      Returns:
      offset in seconds between the two instants (positive if the instance is posterior to the argument)
      Since:
      131
      See Also: