Class TimeStampedPair<K extends TimeStamped,V extends TimeStamped>

java.lang.Object
org.orekit.time.TimeStampedPair<K,V>
Type Parameters:
K - first time stamped value
V - second time stamped value
All Implemented Interfaces:
TimeStamped

public class TimeStampedPair<K extends TimeStamped,V extends TimeStamped> extends Object implements TimeStamped
Pair of time stamped values being defined at the same date.
Author:
Vincent Cucchietti
See Also:
  • Field Details

    • DEFAULT_DATE_EQUALITY_THRESHOLD

      public static final double DEFAULT_DATE_EQUALITY_THRESHOLD
      Default date equality threshold of 1 ns.
      See Also:
  • Constructor Details

    • TimeStampedPair

      public TimeStampedPair(K first, V second)
      Constructor.

      First and second value must have the same date.

      Parameters:
      first - first time stamped value
      second - second time stamped value
    • TimeStampedPair

      public TimeStampedPair(K first, V second, double dateEqualityThreshold)
      Constructor.

      First and second value must have the same date.

      Parameters:
      first - first time stamped value
      second - second time stamped value
      dateEqualityThreshold - threshold below which dates are considered equal
  • Method Details

    • checkDatesConsistency

      public static void checkDatesConsistency(AbsoluteDate firstDate, AbsoluteDate secondDate, double dateEqualityThreshold)
      Check date consistency.
      Parameters:
      firstDate - first date
      secondDate - second date
      dateEqualityThreshold - threshold below which dates are considered equal
    • getDate

      public AbsoluteDate getDate()
      Get the date.
      Specified by:
      getDate in interface TimeStamped
      Returns:
      date attached to the object
    • getFirst

      public K getFirst()
      Get first time stamped value.
      Returns:
      first time stamped value
    • getSecond

      public V getSecond()
      Get second time stamped value.
      Returns:
      second time stamped value