Package org.orekit.files.ccsds.ndm.odm
Class OdmCommonMetadata
java.lang.Object
org.orekit.files.ccsds.section.CommentsContainer
org.orekit.files.ccsds.section.Metadata
org.orekit.files.ccsds.ndm.odm.OdmMetadata
org.orekit.files.ccsds.ndm.odm.OdmCommonMetadata
- All Implemented Interfaces:
Section
- Direct Known Subclasses:
OemMetadata,OmmMetadata
Common metadata for Orbit Parameter/Ephemeris/Mean Messages.
- Since:
- 11.0
- Author:
- Luc Maisonobe
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfinalizeMetadata(ContextBinding context) Finalize the metadata.Get the origin of reference frame.getFrame()Get the reference frame in which data are given: used for state vector and Keplerian elements data (and for the covariance reference frame if none is given).Get epoch of reference frame, if not intrinsic to the definition of the reference frame.intGet the launch number.Get the piece of launch.intGet the launch year.Get the spacecraft ID for which the orbit state is provided.Get the value ofREF_FRAMEas an OrekitFrame.voidsetCenter(BodyFacade center) Set the origin of reference frame.voidsetFrameEpoch(AbsoluteDate frameEpoch) Set epoch of reference frame, if not intrinsic to the definition of the reference frame.voidsetFrameEpochString(String frameEpochString) Set epoch of reference frame, if not intrinsic to the definition of the reference frame.voidsetObjectID(String objectID) Set the spacecraft ID for which the orbit state is provided.voidsetReferenceFrame(FrameFacade referenceFrame) Set the reference frame in which data are given: used for state vector and Keplerian elements data (and for the covariance reference frame if none is given).voidvalidate(double version) Check is all mandatory entries have been initialized.Methods inherited from class org.orekit.files.ccsds.ndm.odm.OdmMetadata
getObjectName, setObjectNameMethods inherited from class org.orekit.files.ccsds.section.Metadata
getFrameMapper, getLaunchNumber, getLaunchPiece, getLaunchYear, getTimeSystem, setTimeSystemMethods inherited from class org.orekit.files.ccsds.section.CommentsContainer
acceptComments, addComment, checkAllowed, checkNotNaN, checkNotNegative, checkNotNull, getComments, refuseFurtherComments, setComments
-
Constructor Details
-
OdmCommonMetadata
Complete constructor.- Parameters:
frameMapper- for creating an OrekitFrame.- Since:
- 13.1.5
-
-
Method Details
-
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.
-
finalizeMetadata
Finalize the metadata.ODM standard enforces
TIME_SYSTEMto appear *after*REF_FRAME_EPOCH, despite it is needed to interpret it. We have to wait until parsing end to finalize this date.- Parameters:
context- context binding
-
getObjectID
Get the spacecraft ID for which the orbit state is provided.- Returns:
- the spacecraft ID
-
setObjectID
Set the spacecraft ID for which the orbit state is provided.- Parameters:
objectID- the spacecraft ID to be set
-
getLaunchYear
public int getLaunchYear()Get the launch year.- Returns:
- launch year
-
getLaunchNumber
public int getLaunchNumber()Get the launch number.- Returns:
- launch number
-
getLaunchPiece
Get the piece of launch.- Returns:
- piece of launch
-
getCenter
Get the origin of reference frame.- Returns:
- the origin of reference frame.
-
setCenter
Set the origin of reference frame.- Parameters:
center- origin of reference frame to be set
-
getFrame
Get the reference frame in which data are given: used for state vector and Keplerian elements data (and for the covariance reference frame if none is given).- Returns:
- the reference frame
- See Also:
-
getReferenceFrame
Get the value ofREF_FRAMEas an OrekitFrame. TheCENTER_NAMEkey word has not been applied yet, so the returned frame may not correspond to the reference frame of the data in the file.- Returns:
- The reference frame specified by the
REF_FRAMEkeyword. - See Also:
-
setReferenceFrame
Set the reference frame in which data are given: used for state vector and Keplerian elements data (and for the covariance reference frame if none is given).- Parameters:
referenceFrame- the reference frame to be set
-
setFrameEpochString
Set epoch of reference frame, if not intrinsic to the definition of the reference frame.- Parameters:
frameEpochString- the epoch of reference frame to be set
-
getFrameEpoch
Get epoch of reference frame, if not intrinsic to the definition of the reference frame.- Returns:
- epoch of reference frame
-
setFrameEpoch
Set epoch of reference frame, if not intrinsic to the definition of the reference frame.- Parameters:
frameEpoch- the epoch of reference frame to be set
-