Class NamedFilesBase<T extends InputFromManager>
- Type Parameters:
T- input-type
- Direct Known Subclasses:
NamedFiles,NamedFilesWithDirectory
Base class for an
InputManager that produces inputs that are created from a NamedFile.- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected InputsWithDirectory<T> createInputsFromFiles(FilesProvider files, InputManagerParameters parameters, Function<NamedFile, T> mapToInput) Creates a list of inputs from aFilesProviderwhich together with thenamercan create the inputs.getNamer()voidMethods inherited from class org.anchoranalysis.io.input.bean.InputManager
inputsMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
NamedFilesBase
public NamedFilesBase() -
NamedFilesBase
-
-
Method Details
-
createInputsFromFiles
protected InputsWithDirectory<T> createInputsFromFiles(FilesProvider files, InputManagerParameters parameters, Function<NamedFile, T> mapToInput) throws InputReadFailedExceptionCreates a list of inputs from aFilesProviderwhich together with thenamercan create the inputs.- Parameters:
files- the files-providerparameters- parameters for the input-managermapToInput- a function that maps a createdNamedFileto the eventual input-type.- Returns:
- a newly created list of inputs
- Throws:
InputReadFailedException
-
getNamer
-
setNamer
-