Class FieldClockOffset<T extends CalculusFieldElement<T>>

    • Constructor Detail

      • FieldClockOffset

        public FieldClockOffset​(FieldAbsoluteDate<T> date,
                                T offset,
                                T rate,
                                T acceleration)
        Simple constructor.
        Parameters:
        date - date
        offset - clock offset
        rate - clock rate (can be set to null if unknown)
        acceleration - clock acceleration (can be set to null if 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
      • getOffset

        public T getOffset()
        Get offset.
        Returns:
        offset
      • getRate

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

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