T
- type of the field elementspublic interface FieldTimeStamped<T extends org.hipparchus.CalculusFieldElement<T>>
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.
AbsoluteDate
,
ChronologicalComparator
,
TimeStampedCache
Modifier and Type | Method and Description |
---|---|
default T |
durationFrom(FieldTimeStamped<T> other)
Compute the physically elapsed duration between two instants.
|
FieldAbsoluteDate<T> |
getDate()
Get the date.
|
FieldAbsoluteDate<T> getDate()
default T durationFrom(FieldTimeStamped<T> other)
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.
other
- instant to subtract from the instanceFieldAbsoluteDate.durationFrom(FieldAbsoluteDate)
Copyright © 2002-2023 CS GROUP. All rights reserved.