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
Term in an IIRV Vector representing a double value.
- Since:
- 13.0
- Author:
- Nick LaFarge
-
Constructor Summary
ConstructorsConstructorDescriptionDoubleValuedIIRVTerm(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
Modifier and TypeMethodDescriptionstatic doublecomputeValueFromString(String value, int nCharsAfterDecimalPlace) Compute the double value of the term from a given 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 Details
-
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 ofvaluethe decimal place is assumed to occur.isSigned- True if negative values are permitted, false if the value is positive
-
-
Method Details
-
computeValueFromString
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 ofvaluethe decimal place is assumed to occur.- Returns:
- Double value corresponding to the
valueString argument
-
toEncodedString
Convert an IIRV term value into the encoded String representation, as it would appear in the IIRV message.- Specified by:
toEncodedStringin classIIRVVectorTerm<Double>- Parameters:
termValue- Value of the term- Returns:
- Encoded String representing of the inputted IIRV term it appears in the IIRV message
-