Class SpectraMeasurementServiceImpl
java.lang.Object
gov.llnl.gnem.apps.coda.calibration.service.impl.SpectraMeasurementServiceImpl
- All Implemented Interfaces:
SpectraMeasurementService
@Service
@Transactional
public class SpectraMeasurementServiceImpl
extends Object
implements SpectraMeasurementService
-
Constructor Summary
ConstructorDescriptionSpectraMeasurementServiceImpl
(SpectraMeasurementRepository spectraRepo, SpectraCalculator spectraCalc, MeasuredMwsRepository measuredEventRepo, ReferenceMwParametersRepository referenceEventRepo, ValidationMwParametersRepository validationEventRepo) -
Method Summary
Modifier and TypeMethodDescriptioncomputeReferenceSpectraForEventId
(String eventId, List<FrequencyBand> frequencyBands, PICK_TYPES selectedPhase) computeValidationSpectraForEventId
(String eventId, List<FrequencyBand> frequencyBands, PICK_TYPES selectedPhase) long
count()
findAll()
findAllMetadataOnly
(Iterable<Long> ids) findOneForUpdate
(Long id) getFitSpectraForEventId
(String eventId, List<FrequencyBand> frequencyBands, PICK_TYPES selectedPhase) getSpecificSpectra
(double moment, double apparentStress, double start, double stop, int count) measureSpectra
(List<SyntheticCoda> generatedSynthetics, Map<FrequencyBand, SharedFrequencyBandParameters> frequencyBandParameterMap, VelocityConfiguration velocityConfig) measureSpectra
(List<SyntheticCoda> generatedSynthetics, Map<FrequencyBand, SharedFrequencyBandParameters> frequencyBandParameterMap, VelocityConfiguration velocityConfig, Map<FrequencyBand, Map<Station, SiteFrequencyBandParameters>> frequencyBandSiteParameterMap)
-
Constructor Details
-
SpectraMeasurementServiceImpl
@Autowired public SpectraMeasurementServiceImpl(SpectraMeasurementRepository spectraRepo, SpectraCalculator spectraCalc, MeasuredMwsRepository measuredEventRepo, ReferenceMwParametersRepository referenceEventRepo, ValidationMwParametersRepository validationEventRepo)
-
-
Method Details
-
findOne
- Specified by:
findOne
in interfaceSpectraMeasurementService
-
findOneForUpdate
- Specified by:
findOneForUpdate
in interfaceSpectraMeasurementService
-
findAll
- Specified by:
findAll
in interfaceSpectraMeasurementService
-
findAllMetadataOnly
- Specified by:
findAllMetadataOnly
in interfaceSpectraMeasurementService
-
findAll
- Specified by:
findAll
in interfaceSpectraMeasurementService
-
findAllMetadataOnly
- Specified by:
findAllMetadataOnly
in interfaceSpectraMeasurementService
-
count
public long count()- Specified by:
count
in interfaceSpectraMeasurementService
-
measureSpectra
public List<SpectraMeasurement> measureSpectra(List<SyntheticCoda> generatedSynthetics, Map<FrequencyBand, SharedFrequencyBandParameters> frequencyBandParameterMap, VelocityConfiguration velocityConfig) - Specified by:
measureSpectra
in interfaceSpectraMeasurementService
-
measureSpectra
public List<SpectraMeasurement> measureSpectra(List<SyntheticCoda> generatedSynthetics, Map<FrequencyBand, SharedFrequencyBandParameters> frequencyBandParameterMap, VelocityConfiguration velocityConfig, Map<FrequencyBand, Map<Station, SiteFrequencyBandParameters>> frequencyBandSiteParameterMap) - Specified by:
measureSpectra
in interfaceSpectraMeasurementService
-
computeReferenceSpectraForEventId
public Spectra computeReferenceSpectraForEventId(String eventId, List<FrequencyBand> frequencyBands, PICK_TYPES selectedPhase) - Specified by:
computeReferenceSpectraForEventId
in interfaceSpectraMeasurementService
-
computeValidationSpectraForEventId
public Spectra computeValidationSpectraForEventId(String eventId, List<FrequencyBand> frequencyBands, PICK_TYPES selectedPhase) - Specified by:
computeValidationSpectraForEventId
in interfaceSpectraMeasurementService
-
getFitSpectraForEventId
public List<Spectra> getFitSpectraForEventId(String eventId, List<FrequencyBand> frequencyBands, PICK_TYPES selectedPhase) - Specified by:
getFitSpectraForEventId
in interfaceSpectraMeasurementService
-
getSpecificSpectra
public Spectra getSpecificSpectra(double moment, double apparentStress, double start, double stop, int count) - Specified by:
getSpecificSpectra
in interfaceSpectraMeasurementService
-