Package org.orekit.time
Interface FieldTimeStamped<T extends CalculusFieldElement<T>>
-
- Type Parameters:
T
- type of the field elements
- All Known Implementing Classes:
FieldAbsoluteDate
,FieldAbsolutePVCoordinates
,FieldAttitude
,FieldBodiesElements
,FieldCartesianOrbit
,FieldCircularOrbit
,FieldDateDetector
,FieldDelaunayArguments
,FieldEquinoctialOrbit
,FieldKeplerianOrbit
,FieldOrbit
,FieldSpacecraftState
,FieldStateCovariance
,FieldTimeStampedPair
,FieldTLE
,TimeStampedField
,TimeStampedFieldAngularCoordinates
,TimeStampedFieldPVCoordinates
public interface FieldTimeStamped<T extends CalculusFieldElement<T>>
This interface represents objects that have aAbsoluteDate
date attached to them.Classes implementing this interface can be stored chronologically in sorted sets using
ChronologicalComparator
as the underlying comparator. An example using forOrbit
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:
AbsoluteDate
,ChronologicalComparator
,TimeStampedCache
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default T
durationFrom(FieldTimeStamped<T> other)
Compute the physically elapsed duration between two instants.FieldAbsoluteDate<T>
getDate()
Get the date.
-
-
-
Method Detail
-
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
, theTT scale
or theGPS 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:
FieldAbsoluteDate.durationFrom(FieldAbsoluteDate)
-
-