Package org.orekit.time.clocks
Class ClockOffset
java.lang.Object
org.orekit.time.clocks.ClockOffset
- All Implemented Interfaces:
TimeStamped
Container for time stamped clock offset.
Instances of this class are immutable
- Since:
- 12.1
- Author:
- Luc Maisonobe
-
Constructor Summary
ConstructorsConstructorDescriptionClockOffset(AbsoluteDate date, double bias, double rate, double acceleration) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptionadd(ClockOffset other) Add another offset to the instance.doubleGet acceleration.doublegetBias()Get bias.getDate()Get the date.doublegetRate()Get rate.subtract(ClockOffset 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.TimeStamped
durationFrom
-
Constructor Details
-
ClockOffset
Simple constructor.- Parameters:
date- datebias- clock biasrate- clock rate (can be set toDouble.NaNif unknown)acceleration- clock acceleration (can be set toDouble.NaNif 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 interfaceTimeStamped- Returns:
- date attached to the object
-
getBias
public double getBias()Get bias.- Returns:
- bias
- Since:
- 14.0
-
getRate
public double getRate()Get rate.- Returns:
- rate (
Double.NaNif unknown)
-
getAcceleration
public double getAcceleration()Get acceleration.- Returns:
- acceleration (
Double.NaNif unknown)
-