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 void
finalizeMetadata(ContextBinding context)
Finalize the metadata.BodyFacade
getCenter()
Get the origin of reference frame.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).AbsoluteDate
getFrameEpoch()
Get epoch of reference frame, if not intrinsic to the definition of the reference frame.int
getLaunchNumber()
Get the launch number.String
getLaunchPiece()
Get the piece of launch.int
getLaunchYear()
Get the launch year.String
getObjectID()
Get the spacecraft ID for which the orbit state is provided.FrameFacade
getReferenceFrame()
Get the value ofREF_FRAME
as an OrekitFrame
.void
setCenter(BodyFacade center)
Set the origin of reference frame.void
setFrameEpoch(AbsoluteDate frameEpoch)
Set epoch of reference frame, if not intrinsic to the definition of the reference frame.void
setFrameEpochString(String frameEpochString)
Set epoch of reference frame, if not intrinsic to the definition of the reference frame.void
setObjectID(String objectID)
Set the spacecraft ID for which the orbit state is provided.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).void
validate(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_SYSTEM
to 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_FRAME
as an OrekitFrame
. TheCENTER_NAME
key 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_FRAME
keyword. - 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
-
-