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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleDefault date equality threshold of 1 ns. -
Constructor Summary
ConstructorsConstructorDescriptionTimeStampedPair(K first, V second) Constructor.TimeStampedPair(K first, V second, double dateEqualityThreshold) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckDatesConsistency(AbsoluteDate firstDate, AbsoluteDate secondDate, double dateEqualityThreshold) Check date consistency.getDate()Get the date.getFirst()Get first time stamped value.Get second time stamped value.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
-
Field Details
-
DEFAULT_DATE_EQUALITY_THRESHOLD
public static final double DEFAULT_DATE_EQUALITY_THRESHOLDDefault date equality threshold of 1 ns.- See Also:
-
-
Constructor Details
-
TimeStampedPair
Constructor.First and second value must have the same date.
- Parameters:
first- first time stamped valuesecond- second time stamped value
-
TimeStampedPair
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 Details
-
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
Get the date.- Specified by:
getDatein interfaceTimeStamped- Returns:
- date attached to the object
-
getFirst
Get first time stamped value.- Returns:
- first time stamped value
-
getSecond
Get second time stamped value.- Returns:
- second time stamped value
-