Package org.orekit.files.ccsds.ndm
Enum ParsedUnitsBehavior
- java.lang.Object
-
- java.lang.Enum<ParsedUnitsBehavior>
-
- org.orekit.files.ccsds.ndm.ParsedUnitsBehavior
-
- All Implemented Interfaces:
Serializable
,Comparable<ParsedUnitsBehavior>
public enum ParsedUnitsBehavior extends Enum<ParsedUnitsBehavior>
Behavior adopted for units that have been parsed from a CCSDS message.- Since:
- 11.0
- Author:
- Luc Maisonobe
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONVERT_COMPATIBLE
Allow compatible units, performing conversion.IGNORE_PARSED
Ignore parsed units, just relying on CCSDS standard.STRICT_COMPLIANCE
Enforce strict compliance with CCSDS standard.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Unit
select(Unit message, Unit standard)
Select the unit to use for interpreting parsed value.static ParsedUnitsBehavior
valueOf(String name)
Returns the enum constant of this type with the specified name.static ParsedUnitsBehavior[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IGNORE_PARSED
public static final ParsedUnitsBehavior 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
public static final ParsedUnitsBehavior 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
public static final ParsedUnitsBehavior 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 Detail
-
values
public static ParsedUnitsBehavior[] 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 (ParsedUnitsBehavior c : ParsedUnitsBehavior.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ParsedUnitsBehavior 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
-
-