Package org.orekit.files.iirv.terms.base
Class DoubleValuedIIRVTerm
- java.lang.Object
-
- org.orekit.files.iirv.terms.base.IIRVVectorTerm<Double>
-
- org.orekit.files.iirv.terms.base.DoubleValuedIIRVTerm
-
- All Implemented Interfaces:
Comparable<IIRVVectorTerm<?>>
- Direct Known Subclasses:
CrossSectionalAreaTerm
,DragCoefficientTerm
,MassTerm
,SolarReflectivityCoefficientTerm
,VelocityVectorComponentTerm
public class DoubleValuedIIRVTerm extends IIRVVectorTerm<Double>
Term in an IIRV Vector representing a double value.- Since:
- 13.0
- Author:
- Nick LaFarge
-
-
Constructor Summary
Constructors Constructor Description DoubleValuedIIRVTerm(String pattern, double value, int length, int nCharsAfterDecimalPlace, boolean isSigned)
Constructs an IIRV Vector Term represented by a double.DoubleValuedIIRVTerm(String pattern, String value, int length, int nCharsAfterDecimalPlace, boolean isSigned)
Constructs an IIRV Vector Term represented by a double from a given String.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static double
computeValueFromString(String value, int nCharsAfterDecimalPlace)
Compute the double value of the term from a given String.String
toEncodedString(Double termValue)
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
-
-
-
-
Constructor Detail
-
DoubleValuedIIRVTerm
public DoubleValuedIIRVTerm(String pattern, double value, int length, int nCharsAfterDecimalPlace, boolean isSigned)
Constructs an IIRV Vector Term represented by a double. This representation is used for any numeric terms in the IIRV Vector that contain a decimal point.- Parameters:
pattern
- Regular expression pattern that validates the termvalue
- Value of the term, expressed as a doublelength
- Length of the term, measured in number of characters in the String representationnCharsAfterDecimalPlace
- Number of characters before the end of the encoded String the decimal place is assumed to occur.isSigned
- True if negative values are permitted, false if the value is positive
-
DoubleValuedIIRVTerm
public DoubleValuedIIRVTerm(String pattern, String value, int length, int nCharsAfterDecimalPlace, boolean isSigned)
Constructs an IIRV Vector Term represented by a double from a given String. This representation is used for any numeric terms in the IIRV Vector that contain a decimal point.- Parameters:
pattern
- Regular expression pattern that validates the termvalue
- Value of the term, expressed as a Stringlength
- Length of the term, measured in number of characters in the String representationnCharsAfterDecimalPlace
- Number of characters before the end ofvalue
the decimal place is assumed to occur.isSigned
- True if negative values are permitted, false if the value is positive
-
-
Method Detail
-
computeValueFromString
public static double computeValueFromString(String value, int nCharsAfterDecimalPlace)
Compute the double value of the term from a given String.- Parameters:
value
- String value to convert to a doublenCharsAfterDecimalPlace
- Number of characters before the end ofvalue
the decimal place is assumed to occur.- Returns:
- Double value corresponding to the
value
String argument
-
toEncodedString
public String toEncodedString(Double termValue)
Convert an IIRV term value into the encoded String representation, as it would appear in the IIRV message.- Specified by:
toEncodedString
in classIIRVVectorTerm<Double>
- Parameters:
termValue
- Value of the term- Returns:
- Encoded String representing of the inputted IIRV term it appears in the IIRV message
-
-