Package org.orekit.time
Class FieldTimeStampedPair<F extends FieldTimeStamped<KK>,S extends FieldTimeStamped<KK>,KK extends CalculusFieldElement<KK>>
- java.lang.Object
-
- org.orekit.time.FieldTimeStampedPair<F,S,KK>
-
- Type Parameters:
F
- first time stamped valueS
- second time stamped valueKK
- type of the field element
- All Implemented Interfaces:
FieldTimeStamped<KK>
public class FieldTimeStampedPair<F extends FieldTimeStamped<KK>,S extends FieldTimeStamped<KK>,KK extends CalculusFieldElement<KK>> extends Object implements FieldTimeStamped<KK>
Pair of time stamped values being defined at the same date.- Author:
- Vincent Cucchietti
- See Also:
FieldTimeStamped
-
-
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 FieldTimeStampedPair(F first, S second)
Constructor.FieldTimeStampedPair(F first, S second, double dateEqualityThreshold)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldAbsoluteDate<KK>
getDate()
Get the date.F
getFirst()
Get first time stamped value.S
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.FieldTimeStamped
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
-
FieldTimeStampedPair
public FieldTimeStampedPair(F first, S second)
Constructor.First and second value must have the same date.
- Parameters:
first
- first time stamped valuesecond
- second time stamped value
-
FieldTimeStampedPair
public FieldTimeStampedPair(F first, S 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
-
getDate
public FieldAbsoluteDate<KK> getDate()
Get the date.- Specified by:
getDate
in interfaceFieldTimeStamped<F extends FieldTimeStamped<KK>>
- Returns:
- date attached to the object
-
getFirst
public F getFirst()
Get first time stamped value.- Returns:
- first time stamped value
-
getSecond
public S getSecond()
Get second time stamped value.- Returns:
- second time stamped value
-
-