Package org.orekit.files.iirv.terms
Class DayOfYearTerm
java.lang.Object
org.orekit.files.iirv.terms.base.IIRVVectorTerm<Long>
org.orekit.files.iirv.terms.base.LongValuedIIRVTerm
org.orekit.files.iirv.terms.DayOfYearTerm
- All Implemented Interfaces:
Comparable<IIRVVectorTerm<?>>
3-character integer representing the day of the year.
Valid values: 001-366 (365 + 1 for leap year)
- 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
ConstructorsConstructorDescriptionDayOfYearTerm(long value) Constructor.DayOfYearTerm(String stringValue) Constructor.DayOfYearTerm(AbsoluteDate absoluteDate, UTCScale utc) Constructs a DayOfYearTerm object from anAbsoluteDateobject. -
Method Summary
Modifier and TypeMethodDescriptiongetDateComponents(int year) Returns theDateComponentsinstance that corresponds this term's value.Methods inherited from class org.orekit.files.iirv.terms.base.LongValuedIIRVTerm
computeValueFromString, toEncodedString, toInt, validateNumericValueMethods inherited from class org.orekit.files.iirv.terms.base.IIRVVectorTerm
compareTo, equals, hashCode, length, toEncodedString, validateString, value
-
Field Details
-
DAY_OF_YEAR_LENGTH
public static final int DAY_OF_YEAR_LENGTHThe length of the IIRV term within the message.- See Also:
-
DAY_OF_YEAR_PATTERN
Regular expression that ensures the validity of string values for this term.- See Also:
-
-
Constructor Details
-
DayOfYearTerm
Constructor.- Parameters:
stringValue- Day of the year (001-366)
-
DayOfYearTerm
public DayOfYearTerm(long value) Constructor.- Parameters:
value- Day of the year (001-366)
-
DayOfYearTerm
Constructs a DayOfYearTerm object from anAbsoluteDateobject.- Parameters:
absoluteDate- date object from which to infer the day of yearutc- UTC time scale
-
-
Method Details
-
getDateComponents
Returns theDateComponentsinstance that corresponds this term's value.- Parameters:
year- year to associated with the created date components- Returns:
- the date components associated with this term
-