Package org.orekit.time.clocks
Class FieldClockOffset<T extends CalculusFieldElement<T>>
- java.lang.Object
-
- org.orekit.time.clocks.FieldClockOffset<T>
-
- Type Parameters:
T- type of the field elements
- All Implemented Interfaces:
FieldTimeStamped<T>
public class FieldClockOffset<T extends CalculusFieldElement<T>> extends Object implements FieldTimeStamped<T>
Container for time stamped clock offset.- Since:
- 12.1
- Author:
- Luc Maisonobe
-
-
Constructor Summary
Constructors Constructor Description FieldClockOffset(FieldAbsoluteDate<T> date, T offset, T rate, T acceleration)Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldClockOffset<T>add(FieldClockOffset<T> other)Add another offset to the instance.TgetAcceleration()Get acceleration.FieldAbsoluteDate<T>getDate()Get the date.TgetOffset()Get offset.TgetRate()Get rate.FieldClockOffset<T>subtract(FieldClockOffset<T> other)Subtract another offset from the instance.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.orekit.time.FieldTimeStamped
durationFrom, durationFrom
-
-
-
-
Constructor Detail
-
FieldClockOffset
public FieldClockOffset(FieldAbsoluteDate<T> date, T offset, T rate, T acceleration)
Simple constructor.- Parameters:
date- dateoffset- clock offsetrate- clock rate (can be set tonullif unknown)acceleration- clock acceleration (can be set tonullif unknown)
-
-
Method Detail
-
add
public FieldClockOffset<T> add(FieldClockOffset<T> other)
Add another offset to the instance.The instance is not modified, a new instance is created
- Parameters:
other- offset to add (date part will be ignored)- Returns:
- instance + other, at instance date
- Since:
- 14.0
-
subtract
public FieldClockOffset<T> subtract(FieldClockOffset<T> other)
Subtract another offset from the instance.The instance is not modified, a new instance is created
- Parameters:
other- offset to subtract (date part will be ignored)- Returns:
- instance - other, at instance date
- Since:
- 14.0
-
getDate
public FieldAbsoluteDate<T> getDate()
Get the date.- Specified by:
getDatein interfaceFieldTimeStamped<T extends CalculusFieldElement<T>>- Returns:
- date attached to the object
-
getOffset
public T getOffset()
Get offset.- Returns:
- offset
-
getRate
public T getRate()
Get rate.- Returns:
- rate (
nullif unknown)
-
getAcceleration
public T getAcceleration()
Get acceleration.- Returns:
- acceleration (
nullif unknown)
-
-