Package org.orekit.files.ccsds.ndm
Enum Class ParsedUnitsBehavior
- All Implemented Interfaces:
Serializable,Comparable<ParsedUnitsBehavior>,Constable
Behavior adopted for units that have been parsed from a CCSDS message.
- Since:
- 11.0
- Author:
- Luc Maisonobe
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAllow compatible units, performing conversion.Ignore parsed units, just relying on CCSDS standard.Enforce strict compliance with CCSDS standard. -
Method Summary
Modifier and TypeMethodDescriptionabstract UnitSelect the unit to use for interpreting parsed value.static ParsedUnitsBehaviorReturns the enum constant of this class with the specified name.static ParsedUnitsBehavior[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IGNORE_PARSED
Ignore parsed units, just relying on CCSDS standard.When this behavior is selected having a unit parsed as second when CCSDS mandates kilometer will be accepted.
-
CONVERT_COMPATIBLE
Allow compatible units, performing conversion.When this behavior is selected having a unit parsed as second when CCSDS mandates kilometer will be refused, but having a unit parsed as meter will be accepted, with proper conversion performed. Missing units (i.e. units parsed as
Unit.NONE) are considered to be standard. -
STRICT_COMPLIANCE
Enforce strict compliance with CCSDS standard.When this behavior is selected having a unit parsed as second or as meter when CCSDS mandates kilometer will both be refused. Missing units (i.e. units parsed as
Unit.NONE) are considered to be standard.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
select
Select the unit to use for interpreting parsed value.- Parameters:
message- unit parsed in the CCSDS messagestandard- unit mandated by the standard- Returns:
- selected unit
-