Package org.orekit.files.iirv.terms
Class VectorEpochTerm
java.lang.Object
org.orekit.files.iirv.terms.base.IIRVVectorTerm<TimeComponents>
org.orekit.files.iirv.terms.VectorEpochTerm
- All Implemented Interfaces:
Comparable<IIRVVectorTerm<?>>
Vector epoch in UTC with resolution to nearest millisecond.
Valid values:
hhmmsssss where:
- hh = 00 to 23
- mm = 00 to 59
- sssss = 00000 to 59999 (milliseconds, implied decimal point three places from right)
- Since:
- 13.0
- Author:
- Nick LaFarge
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe length of the IIRV term within the message.static final StringRegular expression that ensures the validity of string values for this term. -
Constructor Summary
ConstructorsConstructorDescriptionVectorEpochTerm(String stringValue) Constructs from a String value.VectorEpochTerm(AbsoluteDate absoluteDate, UTCScale utc) Constructs from aAbsoluteDatevalue.VectorEpochTerm(TimeComponents timeComponents) Constructs from aTimeComponentsvalue. -
Method Summary
Modifier and TypeMethodDescriptionhh()Gets the two-character hour of the vector epoch.mm()Gets the two-character minute of the vector epoch.ss()Gets the two-character second of the vector epoch.toEncodedString(TimeComponents value) Convert an IIRV term value into the encoded String representation, as it would appear in the IIRV message.Methods inherited from class org.orekit.files.iirv.terms.base.IIRVVectorTerm
compareTo, equals, hashCode, length, toEncodedString, validateString, value
-
Field Details
-
VECTOR_EPOCH_TERM_LENGTH
public static final int VECTOR_EPOCH_TERM_LENGTHThe length of the IIRV term within the message.- See Also:
-
VECTOR_EPOCH_TERM_PATTERN
Regular expression that ensures the validity of string values for this term.String in the form "hhmmsssss":
- hh is 00 to 23: (0[0-9]|1[0-9]|2[0-3])
- mm is 00 to 59: ([0-5][0-9])
- sssss is 00000 to 599999: ([0-5][0-9]{4})
- See Also:
-
-
Constructor Details
-
VectorEpochTerm
Constructs from a String value.- Parameters:
stringValue- Day of the year (001-366)
-
VectorEpochTerm
Constructs from aTimeComponentsvalue.- Parameters:
timeComponents- TimeComponents value to extract vector epoch information from
-
VectorEpochTerm
Constructs from aAbsoluteDatevalue.- Parameters:
absoluteDate- AbsoluteDate value to extract vector epoch information from (in UTC)utc- UTC time scale
-
-
Method Details
-
hh
Gets the two-character hour of the vector epoch.- Returns:
- hh: hour of the vector epoch
-
mm
Gets the two-character minute of the vector epoch.- Returns:
- mm: minute of the vector epoch
-
ss
Gets the two-character second of the vector epoch.- Returns:
- ss: second of the vector epoch
-
toEncodedString
Convert an IIRV term value into the encoded String representation, as it would appear in the IIRV message.- Specified by:
toEncodedStringin classIIRVVectorTerm<TimeComponents>- Parameters:
value- Value of the term- Returns:
- Encoded String representing of the inputted IIRV term it appears in the IIRV message
-