Class CodaParamLoadingController
java.lang.Object
gov.llnl.gnem.apps.coda.calibration.gui.controllers.CodaParamLoadingController
-
Constructor Summary
ConstructorDescriptionCodaParamLoadingController
(List<FileToParameterConverter<?>> fileConverters, ParameterClient paramsClient, EventClient eventClient, com.google.common.eventbus.EventBus bus) Instantiates a new coda param loading controller to handle loading files and converting them to domain objects. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
convertFiles
(List<File> validFiles) Given a set of parsed file handlers attempt to convert them into domain objects and route them through the data access layer to the appropriate endpointsint
void
Attempt to load a list of files based on whateverFileToWaveformConverter
instances are available in the runtime containervoid
setMaxBatching
(int maxBatching)
-
Constructor Details
-
CodaParamLoadingController
@Autowired public CodaParamLoadingController(List<FileToParameterConverter<?>> fileConverters, ParameterClient paramsClient, EventClient eventClient, com.google.common.eventbus.EventBus bus) Instantiates a new coda param loading controller to handle loading files and converting them to domain objects.- Parameters:
fileConverters
- the file converters available for use in converting a file to one or more domain objectsparamsClient
- the params client to use for saving and loading calibration parameter objects, e.g.SharedFrequencyBandParameters
eventClient
- the event client to use for saving and loadingEvent
and related domain objectsbus
- the event bus to register for sending and receiving loading related events
-
-
Method Details
-
loadFiles
Attempt to load a list of files based on whateverFileToWaveformConverter
instances are available in the runtime container- Parameters:
files
- the files to attempt to load
-
convertFiles
Given a set of parsed file handlers attempt to convert them into domain objects and route them through the data access layer to the appropriate endpoints- Parameters:
validFiles
- the files aFileToWaveformConverter
indicated it was capable of processing
-
getMaxBatching
public int getMaxBatching() -
setMaxBatching
public void setMaxBatching(int maxBatching)
-