Package org.anchoranalysis.io.input.bean
Class InputManagerUnary<T extends InputFromManager>
Object
org.anchoranalysis.bean.AnchorBean<InputManager<T>>
org.anchoranalysis.io.input.bean.InputManager<T>
org.anchoranalysis.io.input.bean.InputManagerUnary<T>
- Type Parameters:
T- input-type
public abstract class InputManagerUnary<T extends InputFromManager> extends InputManager<T>
Base class for an
InputManager that delegates to another InputManager with the
same input-type.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description InputManagerUnary() -
Method Summary
Modifier and Type Method Description InputManager<T>getInput()The delegate input-manager which will be circumstantially called by the current input-manager.InputsWithDirectory<T>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.voidsetInput(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 InputReadFailedExceptionDescription copied from class:InputManagerCreates a list of inputs given particular parameters.- Specified by:
inputsin 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 InputReadFailedExceptionCalculates 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.
-