Class SpectraRatioServiceImpl
java.lang.Object
gov.llnl.gnem.apps.coda.calibration.service.impl.SpectraRatioServiceImpl
- All Implemented Interfaces:
SpectraRatioPairDetailsService
,BaseService<SpectraRatioPairDetails,
Long>
@Service
@Transactional
public class SpectraRatioServiceImpl
extends Object
implements SpectraRatioPairDetailsService
-
Constructor Summary
ConstructorDescriptionSpectraRatioServiceImpl
(SpectraRatioPairDetailsRepository spectraRatioRepository, SpectraRatioPairInversionSampleRepository spectraRatioPairInversionSampleRepository, SpectraRatioJointInversionSampleRepository spectraRatioJontInversionSampleRepository, NotificationService notificationService, WaveformService waveformService, PeakVelocityMeasurementService peakVelocityMeasurementsService, SharedFrequencyBandParametersService sharedParametersService, SiteFrequencyBandParametersService siteParamsService, ShapeCalibrationService shapeCalibrationService, SpectraCalculator spectraCalc, SyntheticCodaGenerationService syntheticGenerationService, ConfigurationService configService, AutopickingService picker, ExecutorService measureService, MdacCalculatorService mdacService, MdacParametersFiService mdacFiService, MdacParametersPsService mdacPsService, MeasuredMwsService fitMwService, ReferenceMwParametersService refMwService) -
Method Summary
Modifier and TypeMethodDescriptionprotected double
centerFreq
(Double lowFrequency, Double highFrequency) long
count()
void
delete
(SpectraRatioPairDetails value) void
findAll()
findOneForUpdate
(Long id) getSpectraMeasurementsMap
(Set<String> eventIDs, Function<Set<String>, List<SpectraMeasurement>> spectraListFunc) makeSpectraRatioMeasurementsFromRatioData
(Set<String> smallEventIds, Set<String> largeEventIds, List<RatioEventData> ratioEventData) makeSpectraRatioMeasurementsFromWaveforms
(Boolean autoPickingEnabled, Boolean persistResults, Set<String> smallEventIds, Set<String> largeEventIds) save
(SpectraRatioPairDetails entity) save
(Iterable<SpectraRatioPairDetails> entities) update
(SpectraRatioPairDetails entity) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface gov.llnl.gnem.apps.coda.common.service.api.BaseService
deleteAll
-
Constructor Details
-
Method Details
-
delete
- Specified by:
delete
in interfaceBaseService<SpectraRatioPairDetails,
Long>
-
save
@Transactional public List<SpectraRatioPairDetails> save(Iterable<SpectraRatioPairDetails> entities) - Specified by:
save
in interfaceBaseService<SpectraRatioPairDetails,
Long>
-
delete
- Specified by:
delete
in interfaceBaseService<SpectraRatioPairDetails,
Long>
-
save
- Specified by:
save
in interfaceBaseService<SpectraRatioPairDetails,
Long>
-
update
- Specified by:
update
in interfaceSpectraRatioPairDetailsService
-
findOne
- Specified by:
findOne
in interfaceBaseService<SpectraRatioPairDetails,
Long>
-
findOneForUpdate
- Specified by:
findOneForUpdate
in interfaceBaseService<SpectraRatioPairDetails,
Long>
-
findAll
- Specified by:
findAll
in interfaceBaseService<SpectraRatioPairDetails,
Long>
-
findAll
- Specified by:
findAll
in interfaceBaseService<SpectraRatioPairDetails,
Long>
-
count
public long count()- Specified by:
count
in interfaceBaseService<SpectraRatioPairDetails,
Long>
-
getEntityType
-
getIdType
-
makeSpectraRatioMeasurementsFromRatioData
@Transactional public Future<Result<SpectraRatiosReport>> makeSpectraRatioMeasurementsFromRatioData(Set<String> smallEventIds, Set<String> largeEventIds, List<RatioEventData> ratioEventData) - Specified by:
makeSpectraRatioMeasurementsFromRatioData
in interfaceSpectraRatioPairDetailsService
-
makeSpectraRatioMeasurementsFromWaveforms
@Transactional public Future<Result<SpectraRatiosReport>> makeSpectraRatioMeasurementsFromWaveforms(Boolean autoPickingEnabled, Boolean persistResults, Set<String> smallEventIds, Set<String> largeEventIds) - Specified by:
makeSpectraRatioMeasurementsFromWaveforms
in interfaceSpectraRatioPairDetailsService
-
centerFreq
-
getSpectraMeasurementsMap
public Map<Event,Map<Station, getSpectraMeasurementsMapMap<FrequencyBand, SpectraMeasurement>>> (Set<String> eventIDs, Function<Set<String>, List<SpectraMeasurement>> spectraListFunc) -
findAllMetadataOnly
- Specified by:
findAllMetadataOnly
in interfaceSpectraRatioPairDetailsService
-
loadRatioMetadata
- Specified by:
loadRatioMetadata
in interfaceSpectraRatioPairDetailsService
-