Package org.orekit.time
Class TimeStampedPair<K extends TimeStamped,V extends TimeStamped>
- java.lang.Object
-
- org.orekit.time.TimeStampedPair<K,V>
-
- Type Parameters:
K
- first time stamped valueV
- 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:
TimeStamped
-
-
Field Summary
Fields Modifier and Type Field Description static double
DEFAULT_DATE_EQUALITY_THRESHOLD
Default date equality threshold of 1 ns.
-
Constructor Summary
Constructors Constructor Description TimeStampedPair(K first, V second)
Constructor.TimeStampedPair(K first, V second, double dateEqualityThreshold)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
checkDatesConsistency(AbsoluteDate firstDate, AbsoluteDate secondDate, double dateEqualityThreshold)
Check date consistency.AbsoluteDate
getDate()
Get the date.K
getFirst()
Get first time stamped value.V
getSecond()
Get second time stamped value.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.orekit.time.TimeStamped
durationFrom
-
-
-
-
Field Detail
-
DEFAULT_DATE_EQUALITY_THRESHOLD
public static final double DEFAULT_DATE_EQUALITY_THRESHOLD
Default date equality threshold of 1 ns.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TimeStampedPair
public TimeStampedPair(K first, V second)
Constructor.First and second value must have the same date.
- Parameters:
first
- first time stamped valuesecond
- 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 valuesecond
- second time stamped valuedateEqualityThreshold
- threshold below which dates are considered equal
-
-
Method Detail
-
checkDatesConsistency
public static void checkDatesConsistency(AbsoluteDate firstDate, AbsoluteDate secondDate, double dateEqualityThreshold)
Check date consistency.- Parameters:
firstDate
- first datesecondDate
- second datedateEqualityThreshold
- threshold below which dates are considered equal
-
getDate
public AbsoluteDate getDate()
Get the date.- Specified by:
getDate
in interfaceTimeStamped
- 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
-
-