public abstract class AdpDefaultParser extends java.lang.Object implements AdpParser
This class implements all methods provided by AdpParser interface but the parse abstract method that is parser specific.
A class that implements a parser (e.g. DFDL4S or CUSTOM parser) has to extend this class, i.e. implement the abstract parse method.
Modifier and Type | Field and Description |
---|---|
protected AttFile |
attitudeData |
protected boolean |
attitudeParserEnabled |
protected AdpMainConfiguration |
mainConfiguration |
protected long |
nofItems |
protected long |
nofProcessedItems |
protected OrbitFile |
orbitData |
protected boolean |
orbitParserEnabled |
protected AdpParserConfiguration |
parserConfiguration |
Constructor and Description |
---|
AdpDefaultParser() |
Modifier and Type | Method and Description |
---|---|
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()
Get the AttitudeFile object containing the parsed attitude data
|
long |
getNofItems()
Get the the number of items in the data file
|
long |
getNofProcessedItems()
Get the number of processed items from the data file
|
OrbitFile |
getOrbitData()
Get the OrbitFile object containing the parsed orbit data
|
AdpParserConfiguration |
getParserConfiguration()
Get the parser configuration
|
abstract void |
parse(java.lang.String dataFile)
Parse the data file filling the OrbitData and Attitude data objects
|
protected void |
setMainConfiguration(AdpMainConfiguration inMainConfiguration)
Set the main configuration (as it could be needed by the parser).
|
void |
setParserConfiguration(AdpParserConfiguration inParserConfiguration)
Set the configuration for the parser.
|
protected AdpParserConfiguration parserConfiguration
protected AdpMainConfiguration mainConfiguration
protected long nofItems
protected long nofProcessedItems
protected OrbitFile orbitData
protected AttFile attitudeData
protected boolean orbitParserEnabled
protected boolean attitudeParserEnabled
public AdpParserConfiguration getParserConfiguration()
public void setParserConfiguration(AdpParserConfiguration inParserConfiguration)
inParserConfiguration
- parser configuration instanceprotected void setMainConfiguration(AdpMainConfiguration inMainConfiguration)
inMainConfiguration
- main configuration instancepublic abstract void parse(java.lang.String dataFile) throws EoAdapterError
parse
in interface AdpParser
dataFile
- Input data fileEoAdapterError
public long getNofItems()
getNofItems
in interface AdpParser
public long getNofProcessedItems()
getNofProcessedItems
in interface AdpParser
public OrbitFile getOrbitData()
getOrbitData
in interface AdpParser
public AttFile getAttitudeData()
getAttitudeData
in interface AdpParser
public void disableOrbitParser()
disableOrbitParser
in interface AdpParser
public void enableOrbitParser()
enableOrbitParser
in interface AdpParser
public void disableAttitudeParser()
disableAttitudeParser
in interface AdpParser
public void enableAttitudeParser()
enableAttitudeParser
in interface AdpParser