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<?>>
public class DayOfYearTerm extends LongValuedIIRVTerm
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
Fields Modifier and Type Field Description static int
DAY_OF_YEAR_LENGTH
The length of the IIRV term within the message.static String
DAY_OF_YEAR_PATTERN
Regular expression that ensures the validity of string values for this term.
-
Constructor Summary
Constructors Constructor Description DayOfYearTerm(long value)
Constructor.DayOfYearTerm(String stringValue)
Constructor.DayOfYearTerm(AbsoluteDate absoluteDate, UTCScale utc)
Constructs a DayOfYearTerm object from anAbsoluteDate
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DateComponents
getDateComponents(int year)
Returns theDateComponents
instance that corresponds this term's value.-
Methods inherited from class org.orekit.files.iirv.terms.base.LongValuedIIRVTerm
computeValueFromString, toEncodedString, toInt, validateNumericValue
-
Methods inherited from class org.orekit.files.iirv.terms.base.IIRVVectorTerm
compareTo, equals, hashCode, length, toEncodedString, validateString, value
-
-
-
-
Field Detail
-
DAY_OF_YEAR_LENGTH
public static final int DAY_OF_YEAR_LENGTH
The length of the IIRV term within the message.- See Also:
- Constant Field Values
-
DAY_OF_YEAR_PATTERN
public static final String DAY_OF_YEAR_PATTERN
Regular expression that ensures the validity of string values for this term.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DayOfYearTerm
public DayOfYearTerm(String stringValue)
Constructor.- Parameters:
stringValue
- Day of the year (001-366)
-
DayOfYearTerm
public DayOfYearTerm(long value)
Constructor.- Parameters:
value
- Day of the year (001-366)
-
DayOfYearTerm
public DayOfYearTerm(AbsoluteDate absoluteDate, UTCScale utc)
Constructs a DayOfYearTerm object from anAbsoluteDate
object.- Parameters:
absoluteDate
- date object from which to infer the day of yearutc
- UTC time scale
-
-
Method Detail
-
getDateComponents
public DateComponents getDateComponents(int year)
Returns theDateComponents
instance that corresponds this term's value.- Parameters:
year
- year to associated with the created date components- Returns:
- the date components associated with this term
-
-