public class EphemerisComparator extends Object
This class provides the global usage of the ephemeris comparator library.
Constructor and Description |
---|
EphemerisComparator()
Simple constructor
|
Modifier and Type | Method and Description |
---|---|
void |
clean()
clean the output directory
|
boolean |
compareFiles(URI setupFileURI,
URI firstDataFileURI,
URI secondDataFileURI)
Uses the ephemeris comparison library to load the data contained in the file, compute the comparisons between the
two files and with thresholds
|
boolean |
compareFilesWithReport(URI setupFileURI,
URI firstDataFileURI,
URI secondDataFileURI,
URI outputDirURI,
URI xslFileURI)
Uses the ephemeris comparison library to load the data contained in the file, compute the comparisons between the
two files and with thresholds, and produce a report of the comparison.
|
ComparisonData |
getAbsoluteComparisonData() |
Data<Double> |
getloadedData1() |
Data<Double> |
getloadedData2() |
ComparisonData |
getRawComparisonData() |
ComparisonData |
getRelativeComparisonData() |
ThresholdsData |
getThresholdsData() |
void |
initSetup(URI setupFileURI)
create a Setup object to handle the setup information
|
void |
produceReport(URI setupFileURI,
URI firstDataFileURI,
URI secondDataFileURI,
URI outputDirURI,
URI xslFileURI)
Produce the report if all the data have been computed above
|
public final void clean() throws IOException
IOException
- if there is any problem with the loading, reading, saving of the filespublic final void initSetup(URI setupFileURI) throws IOException
setupFileURI
- the address to the setup information fileIOException
- if there is any problem with the loading, reading, saving of the filesfor more information about the properties that can be set up
public final boolean compareFilesWithReport(URI setupFileURI, URI firstDataFileURI, URI secondDataFileURI, URI outputDirURI, URI xslFileURI) throws IOException, EphemerisComparatorException
setupFileURI
- the address to the setup information filefirstDataFileURI
- the address of the file that contains the first data setsecondDataFileURI
- the address of the file that contains the second data setoutputDirURI
- the address to put the reportsxslFileURI
- the address of the XSL fileIOException
- if there is any problem with the loading, reading, saving of the filesEphemerisComparatorException
- if one of the data files can not be foundfor more information about the properties that can be set up
public final void produceReport(URI setupFileURI, URI firstDataFileURI, URI secondDataFileURI, URI outputDirURI, URI xslFileURI) throws IOException, EphemerisComparatorException
setupFileURI
- the address to the setup information filefirstDataFileURI
- the address of the file that contains the first data setsecondDataFileURI
- the address of the file that contains the second data setoutputDirURI
- the address to put the reportsxslFileURI
- the address of the XSL fileIOException
- if there is any problem with the loading, reading, saving of the filesEphemerisComparatorException
- if one of the data files can not be foundpublic final boolean compareFiles(URI setupFileURI, URI firstDataFileURI, URI secondDataFileURI) throws IOException, EphemerisComparatorException
setupFileURI
- the address to the setup information filefirstDataFileURI
- the address of the file that contains the first data setsecondDataFileURI
- the address of the file that contains the second data setIOException
- if there is any problem with the loading, reading, saving of the filesEphemerisComparatorException
- if one of the data files can not be foundfor more information about the properties that can be set up
public final ComparisonData getAbsoluteComparisonData()
public final ComparisonData getRelativeComparisonData()
public final ComparisonData getRawComparisonData()
public final ThresholdsData getThresholdsData()
Copyright © 2019 CNES. All Rights Reserved.