Package org.orekit.time
Class ConstantOffsetTimeScale
java.lang.Object
org.orekit.time.ConstantOffsetTimeScale
- All Implemented Interfaces:
TimeScale
- Direct Known Subclasses:
BDTScale,GalileoScale,GPSScale,NavicScale,QZSSScale,TAIScale,TTScale
Base class for time scales with constant offset with respect to to TAI.
- Since:
- 12.1
- Author:
- Luc Maisonobe
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Get the name time scale.offsetFromTAI(AbsoluteDate date) Get the offset to convert locations fromTAIScaleto instance.<T extends CalculusFieldElement<T>>
ToffsetFromTAI(FieldAbsoluteDate<T> date) Get the offset to convert locations fromTAIScaleto instance.offsetToTAI(DateComponents date, TimeComponents time) Get the offset to convert locations from instance toTAIScale.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.orekit.time.TimeScale
getLeap, getLeap, insideLeap, insideLeap, minuteDuration, minuteDuration
-
Constructor Details
-
ConstantOffsetTimeScale
Simple constructor.- Parameters:
name- name of the time scaleoffset- offset from TAI
-
-
Method Details
-
offsetFromTAI
Get the offset to convert locations fromTAIScaleto instance.- Specified by:
offsetFromTAIin interfaceTimeScale- Parameters:
date- conversion date- Returns:
- offset in seconds to add to a location in
TAIScaletime scale to get a location in instance time scale - See Also:
-
offsetFromTAI
Get the offset to convert locations fromTAIScaleto instance.- Specified by:
offsetFromTAIin interfaceTimeScale- Type Parameters:
T- type of the filed elements- Parameters:
date- conversion date- Returns:
- offset in seconds to add to a location in
TAIScaletime scale to get a location in instance time scale - See Also:
-
offsetToTAI
Get the offset to convert locations from instance toTAIScale.- Specified by:
offsetToTAIin interfaceTimeScale- Parameters:
date- date location in the time scaletime- time location in the time scale- Returns:
- offset in seconds to add to a location in instance time scale
to get a location in
TAIScaletime scale - See Also:
-
getName
Get the name time scale. -
toString
-