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 Details

    • FieldClockOffset

      public FieldClockOffset(FieldAbsoluteDate<T> date, T bias, T rate, T acceleration)
      Simple constructor.
      Parameters:
      date - date
      bias - clock bias
      rate - clock rate (can be set to null if unknown)
      acceleration - clock acceleration (can be set to null if unknown)
  • Method Details

    • 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:
      getDate in interface FieldTimeStamped<T extends CalculusFieldElement<T>>
      Returns:
      date attached to the object
    • getBias

      public T getBias()
      Get bias.
      Returns:
      bias
    • getRate

      public T getRate()
      Get rate.
      Returns:
      rate (null if unknown)
    • getAcceleration

      public T getAcceleration()
      Get acceleration.
      Returns:
      acceleration (null if unknown)