Package org.orekit.data
Enum PolynomialParser.Unit
- java.lang.Object
-
- java.lang.Enum<PolynomialParser.Unit>
-
- org.orekit.data.PolynomialParser.Unit
-
- All Implemented Interfaces:
Serializable
,Comparable<PolynomialParser.Unit>
- Enclosing class:
- PolynomialParser
public static enum PolynomialParser.Unit extends Enum<PolynomialParser.Unit>
Unit for the coefficients.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARC_SECONDS
Arc-seconds angles.DEGREES
Degrees angles.MICRO_ARC_SECONDS
Micro arc-seconds angles.MILLI_ARC_SECONDS
Milli arc-seconds angles.NO_UNITS
No units.RADIANS
Radians angles.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double
toSI(double value)
Convert value from instance unit to corresponding SI unit.static PolynomialParser.Unit
valueOf(String name)
Returns the enum constant of this type with the specified name.static PolynomialParser.Unit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RADIANS
public static final PolynomialParser.Unit RADIANS
Radians angles.
-
DEGREES
public static final PolynomialParser.Unit DEGREES
Degrees angles.
-
ARC_SECONDS
public static final PolynomialParser.Unit ARC_SECONDS
Arc-seconds angles.
-
MILLI_ARC_SECONDS
public static final PolynomialParser.Unit MILLI_ARC_SECONDS
Milli arc-seconds angles.
-
MICRO_ARC_SECONDS
public static final PolynomialParser.Unit MICRO_ARC_SECONDS
Micro arc-seconds angles.
-
NO_UNITS
public static final PolynomialParser.Unit NO_UNITS
No units.
-
-
Method Detail
-
values
public static PolynomialParser.Unit[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PolynomialParser.Unit c : PolynomialParser.Unit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PolynomialParser.Unit valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toSI
public double toSI(double value)
Convert value from instance unit to corresponding SI unit.- Parameters:
value
- value in instance unit- Returns:
- value in SI unit
-
-