Package org.orekit.files.ccsds.section
Class Header
java.lang.Object
org.orekit.files.ccsds.section.CommentsContainer
org.orekit.files.ccsds.section.Header
- All Implemented Interfaces:
Section
Header of a CCSDS Navigation Data Message.
- Since:
- 10.2
- Author:
- Bryan Cazabonne
-
Constructor Summary
ConstructorsConstructorDescriptionHeader(double minVersionMessageId, double minVersionClassification) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet the classification/caveats.Get the message creation date and time in UTC.doubleGet the CCSDS NDM (ADM, ODM or TDM) format version.Get the ID that uniquely identifies a message from a given originator.Get the message originator.voidsetClassification(String classification) Set the classification/caveats.voidsetCreationDate(AbsoluteDate creationDate) Set the message creation date and time in UTC.voidsetFormatVersion(double formatVersion) Set the CCSDS NDM (ADM, ODM or TDM) format version.voidsetMessageId(String messageId) Set the ID that uniquely identifies a message from a given originator.voidsetOriginator(String originator) Set the message originator.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 Details
-
Header
public Header(double minVersionMessageId, double minVersionClassification) Constructor.- Parameters:
minVersionMessageId- minimum version forHeaderKey.MESSAGE_IDminVersionClassification- minimum version forHeaderKey.CLASSIFICATION
-
-
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.
- Specified by:
validatein interfaceSection- Overrides:
validatein classCommentsContainer- Parameters:
version- format version
-
getFormatVersion
public double getFormatVersion()Get the CCSDS NDM (ADM, ODM or TDM) format version.- Returns:
- format version
-
setFormatVersion
public void setFormatVersion(double formatVersion) Set the CCSDS NDM (ADM, ODM or TDM) format version.- Parameters:
formatVersion- the format version to be set
-
getClassification
Get the classification/caveats.- Returns:
- classification/caveats.
-
setClassification
Set the classification/caveats.- Parameters:
classification- classification/caveats to be set
-
getCreationDate
Get the message creation date and time in UTC.- Returns:
- the message creation date and time in UTC.
-
setCreationDate
Set the message creation date and time in UTC.- Parameters:
creationDate- the creation date to be set
-
getOriginator
Get the message originator.- Returns:
- originator the message originator.
-
setOriginator
Set the message originator.- Parameters:
originator- the originator to be set
-
getMessageId
Get the ID that uniquely identifies a message from a given originator.- Returns:
- ID that uniquely identifies a message from a given originator
-
setMessageId
Set the ID that uniquely identifies a message from a given originator.- Parameters:
messageId- ID that uniquely identifies a message from a given originator
-