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
ConstructorsConstructorDescriptionFieldClockOffset(FieldAbsoluteDate<T> date, T bias, T rate, T acceleration) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptionadd(FieldClockOffset<T> other) Add another offset to the instance.Get acceleration.getBias()Get bias.getDate()Get the date.getRate()Get rate.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, waitMethods inherited from interface org.orekit.time.FieldTimeStamped
durationFrom, durationFrom
-
Constructor Details
-
FieldClockOffset
Simple constructor.- Parameters:
date- datebias- clock biasrate- clock rate (can be set tonullif unknown)acceleration- clock acceleration (can be set tonullif unknown)
-
-
Method Details
-
add
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
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
Get the date.- Specified by:
getDatein interfaceFieldTimeStamped<T extends CalculusFieldElement<T>>- Returns:
- date attached to the object
-
getBias
Get bias.- Returns:
- bias
-
getRate
Get rate.- Returns:
- rate (
nullif unknown)
-
getAcceleration
Get acceleration.- Returns:
- acceleration (
nullif unknown)
-