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<?>>
public class VectorEpochTerm extends IIRVVectorTerm<TimeComponents>
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
Fields Modifier and Type Field Description static int
VECTOR_EPOCH_TERM_LENGTH
The length of the IIRV term within the message.static String
VECTOR_EPOCH_TERM_PATTERN
Regular expression that ensures the validity of string values for this term.
-
Constructor Summary
Constructors Constructor Description VectorEpochTerm(String stringValue)
Constructs from a String value.VectorEpochTerm(AbsoluteDate absoluteDate, UTCScale utc)
Constructs from aAbsoluteDate
value.VectorEpochTerm(TimeComponents timeComponents)
Constructs from aTimeComponents
value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
hh()
Gets the two-character hour of the vector epoch.String
mm()
Gets the two-character minute of the vector epoch.String
ss()
Gets the two-character second of the vector epoch.String
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 Detail
-
VECTOR_EPOCH_TERM_LENGTH
public static final int VECTOR_EPOCH_TERM_LENGTH
The length of the IIRV term within the message.- See Also:
- Constant Field Values
-
VECTOR_EPOCH_TERM_PATTERN
public static final String 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:
- Constant Field Values
-
-
Constructor Detail
-
VectorEpochTerm
public VectorEpochTerm(String stringValue)
Constructs from a String value.- Parameters:
stringValue
- Day of the year (001-366)
-
VectorEpochTerm
public VectorEpochTerm(TimeComponents timeComponents)
Constructs from aTimeComponents
value.- Parameters:
timeComponents
- TimeComponents value to extract vector epoch information from
-
VectorEpochTerm
public VectorEpochTerm(AbsoluteDate absoluteDate, UTCScale utc)
Constructs from aAbsoluteDate
value.- Parameters:
absoluteDate
- AbsoluteDate value to extract vector epoch information from (in UTC)utc
- UTC time scale
-
-
Method Detail
-
hh
public String hh()
Gets the two-character hour of the vector epoch.- Returns:
- hh: hour of the vector epoch
-
mm
public String mm()
Gets the two-character minute of the vector epoch.- Returns:
- mm: minute of the vector epoch
-
ss
public String ss()
Gets the two-character second of the vector epoch.- Returns:
- ss: second of the vector epoch
-
toEncodedString
public String toEncodedString(TimeComponents value)
Convert an IIRV term value into the encoded String representation, as it would appear in the IIRV message.- Specified by:
toEncodedString
in classIIRVVectorTerm<TimeComponents>
- Parameters:
value
- Value of the term- Returns:
- Encoded String representing of the inputted IIRV term it appears in the IIRV message
-
-