Class JsonTempFileWriter
java.lang.Object
gov.llnl.gnem.apps.coda.calibration.gui.data.exporters.JsonTempFileWriter
- All Implemented Interfaces:
MeasuredMwTempFileWriter
,ParamTempFileWriter
,ReferenceMwTempFileWriter
,SpectraRatioTempFileWriter
,SpectraTempFileWriter
,ValidationMwTempFileWriter
@Component
public class JsonTempFileWriter
extends Object
implements SpectraTempFileWriter, ParamTempFileWriter, MeasuredMwTempFileWriter, ReferenceMwTempFileWriter, ValidationMwTempFileWriter, SpectraRatioTempFileWriter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
writeMeasuredMws
(Path folder, String filename, List<MeasuredMwDetails> measuredMwsDetails) void
writeMeasuredMws
(Path folder, List<MeasuredMwDetails> measuredMwsDetails) void
writeParams
(Path folder, Map<FrequencyBand, SharedFrequencyBandParameters> sharedParametersByFreqBand, Map<Station, Map<FrequencyBand, SiteFrequencyBandParameters>> siteParameters, List<MdacParametersFI> fi, List<MdacParametersPS> ps, VelocityConfiguration velocityConfig, ShapeFitterConstraints shapeConstraints, String polygonGeoJSON) void
writeReferenceMwParams
(Path folder, List<ReferenceMwParameters> mws) void
writeSpectraRatioDetails
(BufferedWriter fileWriter, SpectraRatioPairDetailsMetadata spectraRatioPairDetails) void
writeSpectraRatiosReport
(Path folder, SpectraRatiosReportByEventPair ratioReport, EventPair eventPair) void
writeSpectraValues
(Path folder, String filename, List<EventSpectraReport> measurements) void
writeValidationMws
(Path folder, String filename, List<ValidationMwParameters> validationMws) void
writeValidationMws
(Path folder, List<ValidationMwParameters> validationMws)
-
Constructor Details
-
JsonTempFileWriter
public JsonTempFileWriter()
-
-
Method Details
-
writeParams
public void writeParams(Path folder, Map<FrequencyBand, SharedFrequencyBandParameters> sharedParametersByFreqBand, Map<Station, Map<FrequencyBand, SiteFrequencyBandParameters>> siteParameters, List<MdacParametersFI> fi, List<MdacParametersPS> ps, VelocityConfiguration velocityConfig, ShapeFitterConstraints shapeConstraints, String polygonGeoJSON) - Specified by:
writeParams
in interfaceParamTempFileWriter
-
writeReferenceMwParams
- Specified by:
writeReferenceMwParams
in interfaceReferenceMwTempFileWriter
-
writeValidationMws
- Specified by:
writeValidationMws
in interfaceValidationMwTempFileWriter
-
writeValidationMws
public void writeValidationMws(Path folder, String filename, List<ValidationMwParameters> validationMws) - Specified by:
writeValidationMws
in interfaceValidationMwTempFileWriter
-
writeMeasuredMws
- Specified by:
writeMeasuredMws
in interfaceMeasuredMwTempFileWriter
-
writeMeasuredMws
public void writeMeasuredMws(Path folder, String filename, List<MeasuredMwDetails> measuredMwsDetails) - Specified by:
writeMeasuredMws
in interfaceMeasuredMwTempFileWriter
-
writeSpectraValues
- Specified by:
writeSpectraValues
in interfaceSpectraTempFileWriter
-
writeSpectraRatioDetails
public void writeSpectraRatioDetails(BufferedWriter fileWriter, SpectraRatioPairDetailsMetadata spectraRatioPairDetails) - Specified by:
writeSpectraRatioDetails
in interfaceSpectraRatioTempFileWriter
-
writeSpectraRatiosReport
public void writeSpectraRatiosReport(Path folder, SpectraRatiosReportByEventPair ratioReport, EventPair eventPair) - Specified by:
writeSpectraRatiosReport
in interfaceSpectraRatioTempFileWriter
-