public class EoOrbAttAdapter
extends java.lang.Object
Constructor and Description |
---|
EoOrbAttAdapter()
Empty class Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addParsedVectors()
Move the parsed orbit/attitude data to the EOCFI data structures OrbitFile/AttFile
suitable for the file writing.
|
void |
clearAttitudeData()
Delete internal attitude data
|
void |
clearOrbitData()
Clear internal orbit data
|
void |
disableAttitudeParser()
Disable the orbit parser.
|
void |
disableOrbitParser()
Disable the orbit parser.
|
void |
enableAttitudeParser()
Enable the orbit parser.
|
void |
enableOrbitParser()
Enable the orbit parser.
|
AttFile |
getAttitudeData()
Get Attitude data file
|
AdpMainConfiguration |
getMainConfiguration()
Get the configuration with the input file name.
|
long |
getNofItems()
Get Number of items to be parsed
|
long |
getNofProcessedItems()
Get Number of processed items
|
OrbitFile |
getOrbitData()
Get Orbit data file
|
java.lang.String |
getVersion()
Get tool version
|
java.util.logging.Logger |
initLogger()
Sent the log message to the console
By default the messages about the parsing progress are not shown.
|
java.util.logging.Logger |
initLogger(java.lang.String logFile)
Set the log file.
|
void |
parse()
Execute the parser for the data file set in configuration.
|
void |
parse(byte[] dataArr)
Execute the parser for the input byte array data.
|
void |
parse(java.lang.String dataFile)
Execute the parser for the input data file.
|
void |
printValidationReport()
Print the validation report
|
void |
setMainConfiguration(AdpMainConfiguration inputConfig)
Set the configuration with the input data object.
|
void |
setMainConfiguration(java.lang.String configurationFile)
Set the configuration with the input file name.
|
void |
setParser(AdpDefaultParser inputParser)
Set the parser to be used by the method "parse" in next calls.
|
void |
validationChecks()
Check inconsistencies in the parsed orbit and attitude data
|
java.lang.String |
writeAttitudeDataToFile()
Write attitude data to attitude File (filename will be taken from Main Configuration File)
|
java.lang.String |
writeAttitudeDataToFile(java.lang.String OutputAttFile)
Write attitude data to attitude File
|
java.lang.String |
writeOrbitDataToFile()
Write OSVs to Orbit File (filename will be taken from Main Configuration File)
|
java.lang.String |
writeOrbitDataToFile(java.lang.String OutputOrbitFile)
Write OSVs to Orbit File
|
public long getNofItems()
public long getNofProcessedItems()
public java.lang.String getVersion()
public void printValidationReport() throws EoAdapterError
EoAdapterError
public java.util.logging.Logger initLogger()
public java.util.logging.Logger initLogger(java.lang.String logFile) throws EoAdapterError
logFile
- log file name where the log will be written (path+name)EoAdapterError
- if log file does not existspublic void setMainConfiguration(java.lang.String configurationFile) throws EoAdapterError
configurationFile
- configuration file (path+name)EoAdapterError
- if configuration was already setpublic void setMainConfiguration(AdpMainConfiguration inputConfig) throws EoAdapterError
inputConfig
- configuration dataEoAdapterError
- if configuration was already setpublic AdpMainConfiguration getMainConfiguration() throws EoAdapterError
EoAdapterError
- if configuration was not set. The method "setMainConfiguration"
should be called beforepublic void enableOrbitParser() throws EoAdapterError
EoAdapterError
- if configuration was not set. The method "setMainConfiguration"
should be called beforepublic void disableOrbitParser() throws EoAdapterError
EoAdapterError
- if configuration was not set. The method "setMainConfiguration"
should be called beforepublic void enableAttitudeParser() throws EoAdapterError
EoAdapterError
- if configuration was not set. The method "setMainConfiguration"
should be called beforepublic void disableAttitudeParser() throws EoAdapterError
EoAdapterError
- if configuration was not set. The method "setMainConfiguration"
should be called beforepublic void setParser(AdpDefaultParser inputParser)
inputParser
- parser to be used by the adapterpublic void parse(java.lang.String dataFile) throws EoAdapterError
The parsed data will be stored internally as CFI data (OrbitFile/AttFile). Note that Orbit/Attitude data will be parsed if the parser is enabled.
dataFile
- input data file to parser.EoAdapterError
- if the data file could not be parsedpublic void parse(byte[] dataArr) throws EoAdapterError
The parsed data will be stored internally as CFI data (OrbitFile/AttFile). Note that Orbit/Attitude data will be parsed if the parser is enabled.
dataArr
- input byte array to parser.EoAdapterError
- if the data file could not be parsedpublic void parse() throws EoAdapterError
The parsed data will be stored internally as CFI data (OrbitFile/AttFile). Note that Orbit/Attitude data will be parsed if the parser is enabled.
EoAdapterError
- if the data file could not be parsedpublic void addParsedVectors() throws EoAdapterError
EoAdapterError
- if data is not correct (errors from CFI reference conversions)public void validationChecks() throws EoAdapterError
EoAdapterError
- if the data could not be parsedpublic void clearOrbitData()
Every time that a file is parsed, the new data is added to the previous parsed files. when calling this method, the stored orbit data is cleaned.
public void clearAttitudeData()
Every time that a file is parsed, the new data is added to the previous parsed files. when calling this method, the stored attitude data is cleaned.
public java.lang.String writeOrbitDataToFile() throws EoAdapterError
EoAdapterError
- if file could not be writtenpublic java.lang.String writeOrbitDataToFile(java.lang.String OutputOrbitFile) throws EoAdapterError
OutputOrbitFile
- filename for the output fileEoAdapterError
- if file could not be writtenpublic OrbitFile getOrbitData() throws EoAdapterError
EoAdapterError
public java.lang.String writeAttitudeDataToFile() throws EoAdapterError
EoAdapterError
- if file could not be writtenpublic java.lang.String writeAttitudeDataToFile(java.lang.String OutputAttFile) throws EoAdapterError
OutputAttFile
- filename for the output fileEoAdapterError
- if file could not be writtenpublic AttFile getAttitudeData() throws EoAdapterError
EoAdapterError