Class DAFFileRecord
java.lang.Object
org.orekit.files.spice.binary.daf.generic.DAFFileRecord
Represents the first, global file record of a
DAF file, containing
generic metadata.- Since:
- 14.0
- Author:
- Rafael Ayala
-
Constructor Summary
ConstructorsConstructorDescriptionDAFFileRecord(String fileType, int numDoublesSummary, int numIntsSummary, int numCharsName, int singleSummarySizeDoubles, String description, int firstSummaryRecNum, int lastSummaryRecNum, long firstFreeAddress, String endianString, String ftpString) Constructor initializing all metadata fields. -
Method Summary
Modifier and TypeMethodDescriptionGet the internal name of the DAF file.Get the endianness string of the file.Get the file type string.longGet the first free byte address in the DAF file.intGet the record number of the first summary record in the DAF file.Get the integrity-check (FTP) string.intGet the record number of the last summary record in the DAF file.intGet the number of characters used to store each array name.intGet the number of doubles stored in each array summary.intGet the number of integers stored in each array summary.intGet the size of a single array summary in doubles.
-
Constructor Details
-
DAFFileRecord
public DAFFileRecord(String fileType, int numDoublesSummary, int numIntsSummary, int numCharsName, int singleSummarySizeDoubles, String description, int firstSummaryRecNum, int lastSummaryRecNum, long firstFreeAddress, String endianString, String ftpString) Constructor initializing all metadata fields.- Parameters:
fileType- string of the format DAF/XXXX, i.e., "DAF/" followed by 4 or less charactersnumDoublesSummary- number of doubles in each array summarynumIntsSummary- number of integers in each array summarynumCharsName- number of characters used to store each array namesingleSummarySizeDoubles- size of a single array summary in doublesdescription- internal name or description of the DAF filefirstSummaryRecNum- index of the first summary record in the DAF filelastSummaryRecNum- index of the last summary record in the DAF filefirstFreeAddress- the first free byte address in the DAF fileendianString- the file endianness string (either "LTL-IEEE" or "BIG-IEEE")ftpString- integrity-check string (should match "FTPSTR:\r:\n:\r\n:\r::Î:ENDFTP";)
-
-
Method Details
-
getFileType
Get the file type string.- Returns:
- the file type string
-
getNumDoublesSummary
public int getNumDoublesSummary()Get the number of doubles stored in each array summary.- Returns:
- the number of doubles stored in each array summary
-
getNumIntsSummary
public int getNumIntsSummary()Get the number of integers stored in each array summary.- Returns:
- the number of integers stored in each array summary
-
getNumCharsName
public int getNumCharsName()Get the number of characters used to store each array name.- Returns:
- the number of characters used to store each array name
-
getSingleSummarySizeDoubles
public int getSingleSummarySizeDoubles()Get the size of a single array summary in doubles.- Returns:
- the size of a single array summary in doubles
-
getDescription
Get the internal name of the DAF file.- Returns:
- the internal name of the DAF file
-
getFirstSummaryRecNum
public int getFirstSummaryRecNum()Get the record number of the first summary record in the DAF file.- Returns:
- the record number of the first summary record in the DAF file
-
getLastSummaryRecNum
public int getLastSummaryRecNum()Get the record number of the last summary record in the DAF file.- Returns:
- the record number of the last summary record in the DAF file
-
getFirstFreeAddress
public long getFirstFreeAddress()Get the first free byte address in the DAF file.- Returns:
- the first free byte address in the DAF file
-
getEndianString
Get the endianness string of the file.- Returns:
- the endianness string of the file
-
getFtpString
Get the integrity-check (FTP) string.- Returns:
- the integrity-check (FTP) string
-