Class NamedFilesBase<T extends org.anchoranalysis.io.input.InputFromManager>
Object
org.anchoranalysis.bean.AnchorBean<org.anchoranalysis.io.input.bean.InputManager<T>>
org.anchoranalysis.io.input.bean.InputManager<T>
org.anchoranalysis.plugin.io.bean.input.files.NamedFilesBase<T>
- Type Parameters:
T- input-type
- Direct Known Subclasses:
NamedFiles,NamedFilesWithDirectory
public abstract class NamedFilesBase<T extends org.anchoranalysis.io.input.InputFromManager>
extends org.anchoranalysis.io.input.bean.InputManager<T>
Base class for an
InputManager that produces inputs that are created from a NamedFile.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description NamedFilesBase()NamedFilesBase(org.anchoranalysis.io.input.bean.namer.FileNamer namer) -
Method Summary
Modifier and Type Method Description protected org.anchoranalysis.io.input.InputsWithDirectory<T>createInputsFromFiles(org.anchoranalysis.io.input.bean.files.FilesProvider files, org.anchoranalysis.io.input.bean.InputManagerParameters parameters, Function<org.anchoranalysis.io.input.file.NamedFile,T> mapToInput)Creates a list of inputs from aFilesProviderwhich together with thenamercan create the inputs.org.anchoranalysis.io.input.bean.namer.FileNamergetNamer()voidsetNamer(org.anchoranalysis.io.input.bean.namer.FileNamer namer)
-
Constructor Details
-
NamedFilesBase
public NamedFilesBase() -
NamedFilesBase
public NamedFilesBase(org.anchoranalysis.io.input.bean.namer.FileNamer namer)
-
-
Method Details
-
createInputsFromFiles
protected org.anchoranalysis.io.input.InputsWithDirectory<T> createInputsFromFiles(org.anchoranalysis.io.input.bean.files.FilesProvider files, org.anchoranalysis.io.input.bean.InputManagerParameters parameters, Function<org.anchoranalysis.io.input.file.NamedFile,T> mapToInput) throws org.anchoranalysis.io.input.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:
org.anchoranalysis.io.input.InputReadFailedException
-
getNamer
public org.anchoranalysis.io.input.bean.namer.FileNamer getNamer() -
setNamer
public void setNamer(org.anchoranalysis.io.input.bean.namer.FileNamer namer)
-