Package org.orekit.files.ccsds.section
Class Metadata
- java.lang.Object
-
- org.orekit.files.ccsds.section.CommentsContainer
-
- org.orekit.files.ccsds.section.Metadata
-
- All Implemented Interfaces:
Section
- Direct Known Subclasses:
AdmMetadata,CdmMetadata,OdmMetadata,TdmMetadata
public class Metadata extends CommentsContainer
This class gathers the meta-data present in the Navigation Data Message (ADM, ODM and TDM).Beware that the Orekit getters and setters all rely on SI units. The parsers and writers take care of converting these SI units into CCSDS mandatory units. The
Unitclass provides usefulfromSiandtoSImethods in case the callers already use CCSDS units instead of the API SI units. The general-purposeUnitclass (without an 's') and the CCSDS-specificUnitsclass (with an 's') also provide some predefined units. These predefined units and thefromSiandtoSIconversion methods are indeed what the parsers and writers use for the conversions.- Since:
- 11.0
- Author:
- Luc Maisonobe
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMetadata(TimeSystem defaultTimeSystem)Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetLaunchNumber(String objectID)Get the launch number.protected StringgetLaunchPiece(String objectID)Get the piece of launch.protected intgetLaunchYear(String objectID)Get the launch year.TimeSystemgetTimeSystem()Get the Time System that: for OPM, is used for metadata, state vector, maneuver and covariance data, for OMM, is used for metadata, orbit state and covariance data, for OEM, is used for metadata, ephemeris and covariance data.voidsetTimeSystem(TimeSystem timeSystem)Set the Time System that: for OPM, is used for metadata, state vector, maneuver and covariance data, for OMM, is used for metadata, orbit state and covariance data, for OEM, is used for metadata, ephemeris and covariance data.voidvalidate(double version)Check is all mandatory entries have been initialized.-
Methods inherited from class org.orekit.files.ccsds.section.CommentsContainer
acceptComments, addComment, checkAllowed, checkNotNaN, checkNotNegative, checkNotNull, getComments, refuseFurtherComments, setComments
-
-
-
-
Constructor Detail
-
Metadata
protected Metadata(TimeSystem defaultTimeSystem)
Simple constructor.- Parameters:
defaultTimeSystem- default time system (may be null)
-
-
Method Detail
-
validate
public void validate(double version)
Check is all mandatory entries have been initialized.This method should throw an exception if some mandatory entries are missing or not compatible with version number.
- Specified by:
validatein interfaceSection- Overrides:
validatein classCommentsContainer- Parameters:
version- format version
-
getTimeSystem
public TimeSystem getTimeSystem()
Get the Time System that: for OPM, is used for metadata, state vector, maneuver and covariance data, for OMM, is used for metadata, orbit state and covariance data, for OEM, is used for metadata, ephemeris and covariance data.- Returns:
- the time system
-
setTimeSystem
public void setTimeSystem(TimeSystem timeSystem)
Set the Time System that: for OPM, is used for metadata, state vector, maneuver and covariance data, for OMM, is used for metadata, orbit state and covariance data, for OEM, is used for metadata, ephemeris and covariance data.- Parameters:
timeSystem- the time system to be set
-
getLaunchYear
protected int getLaunchYear(String objectID)
Get the launch year.- Parameters:
objectID- object identifier- Returns:
- launch year
-
getLaunchNumber
protected int getLaunchNumber(String objectID)
Get the launch number.- Parameters:
objectID- object identifier- Returns:
- launch number
-
-