public class Header extends CommentsContainer
| Constructor and Description |
|---|
Header(double minVersionMessageId)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AbsoluteDate |
getCreationDate()
Get the file creation date and time in UTC.
|
double |
getFormatVersion()
Get the CCSDS NDM (ADM, ODM or TDM) format version.
|
String |
getMessageId()
Get the ID that uniquely identifies a message from a given originator.
|
String |
getOriginator()
Get the file originator.
|
void |
setCreationDate(AbsoluteDate creationDate)
Set the file creation date and time in UTC.
|
void |
setFormatVersion(double formatVersion)
Set the CCSDS NDM (ADM, ODM or TDM) format version.
|
void |
setMessageId(String messageId)
Set the ID that uniquely identifies a message from a given originator.
|
void |
setOriginator(String originator)
Set the file originator.
|
void |
validate(double version)
Check is all mandatory entries have been initialized.
|
acceptComments, addComment, checkAllowed, checkNotNaN, checkNotNegative, checkNotNull, getComments, refuseFurtherCommentspublic Header(double minVersionMessageId)
minVersionMessageId - minimum version for HeaderKey.MESSAGE_IDpublic void validate(double version)
This method should throw an exception if some mandatory entries are missing or not compatible with version number.
validate in interface Sectionvalidate in class CommentsContainerversion - format versionpublic double getFormatVersion()
public void setFormatVersion(double formatVersion)
formatVersion - the format version to be setpublic AbsoluteDate getCreationDate()
public void setCreationDate(AbsoluteDate creationDate)
creationDate - the creation date to be setpublic String getOriginator()
public void setOriginator(String originator)
originator - the originator to be setpublic String getMessageId()
public void setMessageId(String messageId)
messageId - ID that uniquely identifies a message from a given originatorCopyright © 2002-2021 CS GROUP. All rights reserved.