Package org.anchoranalysis.io.input.bean
Class InputManagerUnary<T extends InputFromManager>
- Type Parameters:
T
- input-type
- Direct Known Subclasses:
BranchIfDebug
,Exclude
,FilterCSVColumn
,FilterDescriptiveName
,FilterIfDebug
,Limit
,LimitIfRequested
,Shuffle
,ShuffleIfRequested
,SortAlphabetically
Base class for an
InputManager
that delegates to another InputManager
with the
same input-type.- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInput()
The delegate input-manager which will be circumstantially called by the current input-manager.inputs
(InputManagerParameters parameters) Creates a list of inputs given particular parameters.protected abstract InputsWithDirectory
<T> inputsFromDelegate
(InputsWithDirectory<T> fromDelegate, InputManagerParameters parameters) Calculates the inputs to return given the inputs from the delegate.void
setInput
(InputManager<T> input) The delegate input-manager which will be circumstantially called by the current input-manager.Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
InputManagerUnary
public InputManagerUnary()
-
-
Method Details
-
inputs
public InputsWithDirectory<T> inputs(InputManagerParameters parameters) throws InputReadFailedException Description copied from class:InputManager
Creates a list of inputs given particular parameters.- Specified by:
inputs
in classInputManager<T extends InputFromManager>
- Parameters:
parameters
- the parameters.- Returns:
- the list of inputs, together with any associated parent directory.
- Throws:
InputReadFailedException
- if inputs cannot be successfully read from the file-system.
-
inputsFromDelegate
protected abstract InputsWithDirectory<T> inputsFromDelegate(InputsWithDirectory<T> fromDelegate, InputManagerParameters parameters) throws InputReadFailedException Calculates the inputs to return given the inputs from the delegate.- Parameters:
fromDelegate
- the inputs from the delegate.parameters
- parameters for determining inputs.- Returns:
- inputs to return after any further processing.
- Throws:
InputReadFailedException
- if inputs cannot be successfully read from the file-system.
-
getInput
The delegate input-manager which will be circumstantially called by the current input-manager. -
setInput
The delegate input-manager which will be circumstantially called by the current input-manager.
-