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 aFilesProvider
which together with thenamer
can create the inputs.getNamer()
void
Methods inherited from class org.anchoranalysis.io.input.bean.InputManager
inputs
Methods 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 aFilesProvider
which together with thenamer
can create the inputs.- Parameters:
files
- the files-providerparameters
- parameters for the input-managermapToInput
- a function that maps a createdNamedFile
to the eventual input-type.- Returns:
- a newly created list of inputs
- Throws:
InputReadFailedException
-
getNamer
-
setNamer
-