Class BranchIfDebug<T extends InputFromManager>
- Type Parameters:
T
- input type
Uses one input-manager normally, but a different one if in debug mode.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIf defined, this provides an input to the manager when in debug-mode, rather than than otherwiseinputs
.protected InputsWithDirectory
<T> inputsFromDelegate
(InputsWithDirectory<T> fromDelegate, InputManagerParameters parameters) Calculates the inputs to return given the inputs from the delegate.void
setInputDebug
(InputManager<T> inputDebug) If defined, this provides an input to the manager when in debug-mode, rather than than otherwiseinputs
.Methods inherited from class org.anchoranalysis.io.input.bean.InputManagerUnary
getInput, inputs, setInput
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
BranchIfDebug
public BranchIfDebug()
-
-
Method Details
-
inputsFromDelegate
protected InputsWithDirectory<T> inputsFromDelegate(InputsWithDirectory<T> fromDelegate, InputManagerParameters parameters) throws InputReadFailedException Description copied from class:InputManagerUnary
Calculates the inputs to return given the inputs from the delegate.- Specified by:
inputsFromDelegate
in classInputManagerUnary<T extends InputFromManager>
- 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.
-
getInputDebug
If defined, this provides an input to the manager when in debug-mode, rather than than otherwiseinputs
.Note that only the first item is ever read from this input-manager.
-
setInputDebug
If defined, this provides an input to the manager when in debug-mode, rather than than otherwiseinputs
.Note that only the first item is ever read from this input-manager.
-