![]() |
Earth Observation Software Orbit and Attitude Adapater Tool |
![]() |
Interface used to parser the user files to CFI orbit/attitude files. More...
Public Member Functions | |
EoOrbAttAdapter () | |
Empty class Constructor. | |
long | getNofItems () |
Get Number of items to be parsed. | |
long | getNofProcessedItems () |
Get Number of processed items. | |
String | getVersion () |
Get tool version. | |
void | printValidationReport () throws EoAdapterError |
Print the validation report. | |
Logger | initLogger () |
Sent the log message to the console By default the messages about the parsing progress are not shown. | |
Logger | initLogger (String logFile) throws EoAdapterError |
Set the log file. | |
void | setMainConfiguration (String configurationFile) throws EoAdapterError |
Set the configuration with the input file name. | |
void | setMainConfiguration (final AdpMainConfiguration inputConfig) throws EoAdapterError |
Set the configuration with the input data object. | |
AdpMainConfiguration | getMainConfiguration () throws EoAdapterError |
Get the configuration with the input file name. | |
void | enableOrbitParser () throws EoAdapterError |
Enable the orbit parser. | |
void | disableOrbitParser () throws EoAdapterError |
Disable the orbit parser. | |
void | enableAttitudeParser () throws EoAdapterError |
Enable the orbit parser. | |
void | disableAttitudeParser () throws EoAdapterError |
Disable the orbit parser. | |
void | setParser (final AdpDefaultParser inputParser) |
Set the parser to be used by the method "parse" in next calls. | |
void | parse (final String dataFile) throws EoAdapterError |
Execute the parser for the input data file. | |
void | parse (final byte[] dataArr) throws EoAdapterError |
Execute the parser for the input byte array data. | |
void | parse () throws EoAdapterError |
Execute the parser for the data file set in configuration. | |
void | addParsedVectors () throws EoAdapterError |
Move the parsed orbit/attitude data to the EOCFI data structures OrbitFile/AttFile suitable for the file writing. | |
void | validationChecks () throws EoAdapterError |
Check inconsistencies in the parsed orbit and attitude data. | |
void | clearOrbitData () |
Clear internal orbit data. | |
void | clearAttitudeData () |
Delete internal attitude data. | |
String | writeOrbitDataToFile () throws EoAdapterError |
Write OSVs to Orbit File (filename will be taken from Main Configuration File) | |
String | writeOrbitDataToFile (final String OutputOrbitFile) throws EoAdapterError |
Write OSVs to Orbit File. | |
OrbitFile | getOrbitData () throws EoAdapterError |
Get Orbit data file. | |
String | writeAttitudeDataToFile () throws EoAdapterError |
Write attitude data to attitude File (filename will be taken from Main Configuration File) | |
String | writeAttitudeDataToFile (final String OutputAttFile) throws EoAdapterError |
Write attitude data to attitude File. | |
AttFile | getAttitudeData () throws EoAdapterError |
Get Attitude data file. | |
Interface used to parser the user files to CFI orbit/attitude files.
EoOrbAttAdapter.EoOrbAttAdapter.EoOrbAttAdapter | ( | ) |
Empty class Constructor.
void EoOrbAttAdapter.EoOrbAttAdapter.addParsedVectors | ( | ) | throws EoAdapterError |
Move the parsed orbit/attitude data to the EOCFI data structures OrbitFile/AttFile suitable for the file writing.
EoAdapterError | if data is not correct (errors from CFI reference conversions) |
References EoOrbAttAdapter.AdpOutputConfiguration.attitudeOutputConfig, EoOrbAttAdapter.AdpOutputConfiguration.orbitOutputConfig, EoOrbAttAdapter.AdpAttitudeOutputConfiguration.refFrame, EoOrbAttAdapter.AdpOrbitOutputConfiguration.refFrame, EoOrbAttAdapter.AdpAttitudeOutputConfiguration.timeRef, and EoOrbAttAdapter.AdpOrbitOutputConfiguration.timeRef.
void EoOrbAttAdapter.EoOrbAttAdapter.clearAttitudeData | ( | ) |
Delete internal attitude data.
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.
void EoOrbAttAdapter.EoOrbAttAdapter.clearOrbitData | ( | ) |
Clear internal orbit data.
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.
void EoOrbAttAdapter.EoOrbAttAdapter.disableAttitudeParser | ( | ) | throws EoAdapterError |
Disable the orbit parser.
EoAdapterError | if configuration was not set. The method "setMainConfiguration" should be called before |
References EoOrbAttAdapter.EoAdapterError.addError().
void EoOrbAttAdapter.EoOrbAttAdapter.disableOrbitParser | ( | ) | throws EoAdapterError |
Disable the orbit parser.
EoAdapterError | if configuration was not set. The method "setMainConfiguration" should be called before |
References EoOrbAttAdapter.EoAdapterError.addError().
void EoOrbAttAdapter.EoOrbAttAdapter.enableAttitudeParser | ( | ) | throws EoAdapterError |
Enable the orbit parser.
EoAdapterError | if configuration was not set. The method "setMainConfiguration" should be called before |
References EoOrbAttAdapter.EoAdapterError.addError().
void EoOrbAttAdapter.EoOrbAttAdapter.enableOrbitParser | ( | ) | throws EoAdapterError |
Enable the orbit parser.
EoAdapterError | if configuration was not set. The method "setMainConfiguration" should be called before |
References EoOrbAttAdapter.EoAdapterError.addError().
AttFile EoOrbAttAdapter.EoOrbAttAdapter.getAttitudeData | ( | ) | throws EoAdapterError |
Get Attitude data file.
AdpMainConfiguration EoOrbAttAdapter.EoOrbAttAdapter.getMainConfiguration | ( | ) | throws EoAdapterError |
Get the configuration with the input file name.
EoAdapterError | if configuration was not set. The method "setMainConfiguration" should be called before |
References EoOrbAttAdapter.EoAdapterError.addError().
long EoOrbAttAdapter.EoOrbAttAdapter.getNofItems | ( | ) |
Get Number of items to be parsed.
long EoOrbAttAdapter.EoOrbAttAdapter.getNofProcessedItems | ( | ) |
Get Number of processed items.
OrbitFile EoOrbAttAdapter.EoOrbAttAdapter.getOrbitData | ( | ) | throws EoAdapterError |
Get Orbit data file.
String EoOrbAttAdapter.EoOrbAttAdapter.getVersion | ( | ) |
Get tool version.
Logger EoOrbAttAdapter.EoOrbAttAdapter.initLogger | ( | ) |
Sent the log message to the console By default the messages about the parsing progress are not shown.
To visualize the messages through the standard output, this method has to be called.
Logger EoOrbAttAdapter.EoOrbAttAdapter.initLogger | ( | String | logFile | ) | throws EoAdapterError |
Set the log file.
By default the messages about the parsing progress are not shown. To write the the messages to an output file, this method has to be called.
logFile | log file name where the log will be written (path+name) |
EoAdapterError | if log file does not exists |
References EoOrbAttAdapter.EoAdapterError.addError().
void EoOrbAttAdapter.EoOrbAttAdapter.parse | ( | ) | throws EoAdapterError |
Execute the parser for the data file set in configuration.
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 parsed |
References EoOrbAttAdapter.EoAdapterError.addError().
void EoOrbAttAdapter.EoOrbAttAdapter.parse | ( | final byte[] | dataArr | ) | throws EoAdapterError |
Execute the parser for the input byte array data.
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 parsed |
void EoOrbAttAdapter.EoOrbAttAdapter.parse | ( | final String | dataFile | ) | throws EoAdapterError |
Execute the parser for the input data file.
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 parsed |
References EoOrbAttAdapter.EoAdapterError.addError().
void EoOrbAttAdapter.EoOrbAttAdapter.printValidationReport | ( | ) | throws EoAdapterError |
Print the validation report.
References printValidationReport().
Referenced by printValidationReport().
void EoOrbAttAdapter.EoOrbAttAdapter.setMainConfiguration | ( | final AdpMainConfiguration | inputConfig | ) | throws EoAdapterError |
Set the configuration with the input data object.
inputConfig | configuration data |
EoAdapterError | if configuration was already set |
References EoOrbAttAdapter.EoAdapterError.addError(), EoOrbAttAdapter.AdpOutputConfiguration.commonOutputConfig, EoOrbAttAdapter.AdpMainConfiguration.initTimeCorrelations(), and EoOrbAttAdapter.AdpCommonOutputConfiguration.missionId.
void EoOrbAttAdapter.EoOrbAttAdapter.setMainConfiguration | ( | String | configurationFile | ) | throws EoAdapterError |
Set the configuration with the input file name.
configurationFile | configuration file (path+name) |
EoAdapterError | if configuration was already set |
References EoOrbAttAdapter.AdpMainConfiguration.loadMainConfiguration(), and setMainConfiguration().
Referenced by setMainConfiguration().
void EoOrbAttAdapter.EoOrbAttAdapter.setParser | ( | final AdpDefaultParser | inputParser | ) |
Set the parser to be used by the method "parse" in next calls.
inputParser | parser to be used by the adapter |
References EoOrbAttAdapter.AdpDefaultParser.getParserConfiguration().
void EoOrbAttAdapter.EoOrbAttAdapter.validationChecks | ( | ) | throws EoAdapterError |
Check inconsistencies in the parsed orbit and attitude data.
EoAdapterError | if the data could not be parsed |
References EoOrbAttAdapter.EoAdapterError.addCfiErrors(), EoOrbAttAdapter.EoAdapterError.addError(), EoOrbAttAdapter.AdpInputConfiguration.attChecks, EoOrbAttAdapter.AttDiagnostic.computeDiagnostics(), EoOrbAttAdapter.AdpOrbitChecksConfiguration.duplicatedOsvThreshold, EoOrbAttAdapter.AdpAttitudeChecksConfiguration.duplicatedThreshold, EoOrbAttAdapter.AdpAttitudeChecksConfiguration.maximumGap, EoOrbAttAdapter.AdpOrbitChecksConfiguration.maximumGap, EoOrbAttAdapter.AdpInputConfiguration.orbitChecks, EoOrbAttAdapter.AdpAttitudeChecksConfiguration.timeStep, EoOrbAttAdapter.AdpOrbitChecksConfiguration.timeStep, EoOrbAttAdapter.AdpAttitudeChecksConfiguration.timeStepThreshold, and EoOrbAttAdapter.AdpOrbitChecksConfiguration.timeStepThreshold.
String EoOrbAttAdapter.EoOrbAttAdapter.writeAttitudeDataToFile | ( | ) | throws EoAdapterError |
Write attitude data to attitude File (filename will be taken from Main Configuration File)
EoAdapterError | if file could not be written |
References EoOrbAttAdapter.AdpOutputConfiguration.attitudeOutputConfig, EoOrbAttAdapter.AdpAttitudeOutputConfiguration.defaultFile, and writeAttitudeDataToFile().
Referenced by writeAttitudeDataToFile().
String EoOrbAttAdapter.EoOrbAttAdapter.writeAttitudeDataToFile | ( | final String | OutputAttFile | ) | throws EoAdapterError |
Write attitude data to attitude File.
OutputAttFile | filename for the output file |
EoAdapterError | if file could not be written |
References EoOrbAttAdapter.EoAdapterError.addCfiErrors(), and EoOrbAttAdapter.EoAdapterError.addError().
String EoOrbAttAdapter.EoOrbAttAdapter.writeOrbitDataToFile | ( | ) | throws EoAdapterError |
Write OSVs to Orbit File (filename will be taken from Main Configuration File)
EoAdapterError | if file could not be written |
References EoOrbAttAdapter.AdpOrbitOutputConfiguration.defaultFile, EoOrbAttAdapter.AdpOutputConfiguration.orbitOutputConfig, and writeOrbitDataToFile().
Referenced by writeOrbitDataToFile().
String EoOrbAttAdapter.EoOrbAttAdapter.writeOrbitDataToFile | ( | final String | OutputOrbitFile | ) | throws EoAdapterError |
Write OSVs to Orbit File.
OutputOrbitFile | filename for the output file |
EoAdapterError | if file could not be written |
References EoOrbAttAdapter.EoAdapterError.addCfiErrors(), and EoOrbAttAdapter.EoAdapterError.addError().