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 a FilesProvider which together with the namer can create the inputs.
    org.anchoranalysis.io.input.bean.namer.FileNamer getNamer()  
    void setNamer​(org.anchoranalysis.io.input.bean.namer.FileNamer namer)  

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • 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.InputReadFailedException
      Creates a list of inputs from a FilesProvider which together with the namer can create the inputs.
      Parameters:
      files - the files-provider
      parameters - parameters for the input-manager
      mapToInput - a function that maps a created NamedFile to 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)