Class CodaParamLoadingController
java.lang.Object
gov.llnl.gnem.apps.coda.calibration.gui.controllers.CodaParamLoadingController
-
Constructor Summary
ConstructorsConstructorDescriptionCodaParamLoadingController(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 voidconvertFiles(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 endpointsintvoidAttempt to load a list of files based on whateverFileToWaveformConverterinstances are available in the runtime containervoidsetMaxBatching(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.SharedFrequencyBandParameterseventClient- the event client to use for saving and loadingEventand 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 whateverFileToWaveformConverterinstances 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 aFileToWaveformConverterindicated it was capable of processing
-
getMaxBatching
public int getMaxBatching() -
setMaxBatching
public void setMaxBatching(int maxBatching)
-