Class NamedFilesBase<T extends InputFromManager>
Object
AnchorBean<InputManager<T>>
InputManager<T>
NamedFilesBase<T>
- Type Parameters:
T- input-type
- Direct Known Subclasses:
NamedFiles,NamedFilesWithDirectory
public abstract class NamedFilesBase<T extends InputFromManager>
extends InputManager<T>
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.FileNamergetNamer()voidsetNamer(FileNamer namer) Methods 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
public NamedFilesBase(FileNamer namer)
-
-
Method Details
-
createInputsFromFiles
protected InputsWithDirectory<T> createInputsFromFiles(FilesProvider files, InputManagerParameters parameters, Function<NamedFile, T> mapToInput) throws InputReadFailedException Creates 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
public FileNamer getNamer() -
setNamer
public void setNamer(FileNamer namer)
-