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
public class OdmCommonMetadata extends OdmMetadata
Common metadata for Orbit Parameter/Ephemeris/Mean Messages.- Since:
- 11.0
- Author:
- Luc Maisonobe
-
-
Constructor Summary
Constructors Constructor Description OdmCommonMetadata()Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinalizeMetadata(ContextBinding context)Finalize the metadata.BodyFacadegetCenter()Get the origin of reference frame.FramegetFrame()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).AbsoluteDategetFrameEpoch()Get epoch of reference frame, if not intrinsic to the definition of the reference frame.intgetLaunchNumber()Get the launch number.StringgetLaunchPiece()Get the piece of launch.intgetLaunchYear()Get the launch year.StringgetObjectID()Get the spacecraft ID for which the orbit state is provided.FrameFacadegetReferenceFrame()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, setObjectName
-
Methods inherited from class org.orekit.files.ccsds.section.Metadata
getLaunchNumber, getLaunchPiece, getLaunchYear, getTimeSystem, setTimeSystem
-
Methods inherited from class org.orekit.files.ccsds.section.CommentsContainer
acceptComments, addComment, checkAllowed, checkNotNaN, checkNotNegative, checkNotNull, getComments, refuseFurtherComments, setComments
-
-
-
-
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.
-
finalizeMetadata
public void finalizeMetadata(ContextBinding context)
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
public String getObjectID()
Get the spacecraft ID for which the orbit state is provided.- Returns:
- the spacecraft ID
-
setObjectID
public void setObjectID(String objectID)
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
public String getLaunchPiece()
Get the piece of launch.- Returns:
- piece of launch
-
getCenter
public BodyFacade getCenter()
Get the origin of reference frame.- Returns:
- the origin of reference frame.
-
setCenter
public void setCenter(BodyFacade center)
Set the origin of reference frame.- Parameters:
center- origin of reference frame to be set
-
getFrame
public 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).- Returns:
- the reference frame
-
getReferenceFrame
public FrameFacade 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:
getFrame()
-
setReferenceFrame
public void setReferenceFrame(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).- Parameters:
referenceFrame- the reference frame to be set
-
setFrameEpochString
public void setFrameEpochString(String frameEpochString)
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
public AbsoluteDate getFrameEpoch()
Get epoch of reference frame, if not intrinsic to the definition of the reference frame.- Returns:
- epoch of reference frame
-
setFrameEpoch
public void setFrameEpoch(AbsoluteDate frameEpoch)
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
-
-