public class EoOrbAttAdapter
extends java.lang.Object
Constructor and Description |
---|
EoOrbAttAdapter()
Empty class Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
clearAttitudeData()
Clear internal attitude data.
|
void |
clearOrbitData()
Clear internal orbit data.
|
void |
disableAttitudeParser()
Disable the attitude parser.
|
void |
disableOrbitParser()
Disable the orbit parser.
|
void |
enableAttitudeParser()
Enable the attitude parser.
|
void |
enableOrbitParser()
Enable the orbit parser.
|
AttFile |
getAttitudeData()
Return parsed Attitude data as an EOCFI AttFile object
|
AdpMainConfiguration |
getMainConfiguration()
Return the currently set configuration as an AdpMainConfiguration object.
|
long |
getNofItems()
Get Number of items (packets) contained in the data file.
|
long |
getNofProcessedItems()
Get Number of processed items (packets).
|
OrbitFile |
getOrbitData()
Return parsed Orbit data as an EOCFI OrbitFile object
|
java.lang.String |
getVersion()
Return Adapter tool version
|
java.util.logging.Logger |
initLogger()
Init and returns the Logger, Log messages are sent to standard output.
|
java.util.logging.Logger |
initLogger(java.lang.String logFile)
Init and returns the Logger, Log messages are sent to standard output and logFile.
|
void |
parse()
Parse the input data file defined in the main configuration file.
|
void |
parse(java.lang.String dataFile)
Execute the parser for the input data file.
|
void |
setMainConfiguration(AdpMainConfiguration inputConfig)
Set the Adapter main configuration using an AdpMainConfiguration object.
|
void |
setMainConfiguration(java.lang.String configurationFile)
Set the Adapter main configuration using the input configurationFile.
|
void |
setParser(AdpDefaultParser inputParser)
Set a user defined (custom) parser
|
java.lang.String |
writeAttitudeDataToFile()
Write attitude data to Attitude File and return the filename.
|
java.lang.String |
writeAttitudeDataToFile(java.lang.String OutputAttFile)
Write attitude data to Orbit File and return the filename
|
java.lang.String |
writeOrbitDataToFile()
Write orbit data to Orbit File and return the filename.
|
java.lang.String |
writeOrbitDataToFile(java.lang.String OutputOrbitFile)
Write orbit data to Orbit File and return the filename
|
public long getNofItems()
public long getNofProcessedItems()
public java.lang.String getVersion()
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
This method overrides the status attribute enabled/disabled in the main configuration.
EoAdapterError
- if configuration was not set. The method "setMainConfiguration"
should be called beforepublic void disableOrbitParser() throws EoAdapterError
This method overrides the status attribute enabled/disabled in the main configuration.
EoAdapterError
- if configuration was not set. The method "setMainConfiguration"
should be called beforepublic void enableAttitudeParser() throws EoAdapterError
This method overrides the status attribute enabled/disabled in the main configuration.
EoAdapterError
- if configuration was not set. The method "setMainConfiguration"
should be called beforepublic void disableAttitudeParser() throws EoAdapterError
This method overrides the status attribute enabled/disabled in the main configuration.
EoAdapterError
- if configuration was not set. The method "setMainConfiguration"
should be called beforepublic void setParser(AdpDefaultParser inputParser)
The inputParser will be used by the next calls to the parse method if the parser type is CUSTOM.
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). 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() throws EoAdapterError
The file to be parsed will be taken from the main configuration file:
<Input_Configuration>
<Default_Values>
<Input_Data_Filename>... </Input_Data_Filename>
</Default_Values>
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 clearOrbitData()
When the parse method is called, an internal memory structure is filled.
The following calls to the parse method will add data to the structure.
Calling the clearOrbitData method will clear such memory structure.
public void clearAttitudeData()
When the parse method is called, an internal memory structure is filled.
The following calls to the parse method will add data to the structure.
Calling the clearAttitudeData method will clear such memory structure.
public java.lang.String writeOrbitDataToFile() throws EoAdapterError
Filename will be taken from Main Configuration File:
<Output_Configuration>EoAdapterError
- if file could not be writtenpublic java.lang.String writeOrbitDataToFile(java.lang.String OutputOrbitFile) throws EoAdapterError
OutputOrbitFile
- the output file nameEoAdapterError
- if file could not be writtenpublic OrbitFile getOrbitData() throws EoAdapterError
EoAdapterError
public java.lang.String writeAttitudeDataToFile() throws EoAdapterError
Filename will be taken from Main Configuration File:
<Output_Configuration>EoAdapterError
- if file could not be writtenpublic java.lang.String writeAttitudeDataToFile(java.lang.String OutputAttFile) throws EoAdapterError
OutputAttFile
- the output file nameEoAdapterError
- if file could not be writtenpublic AttFile getAttitudeData() throws EoAdapterError
EoAdapterError