Class BranchIfDebug<T extends InputFromManager>

Object
AnchorBean<InputManager<T>>
InputManager<T>
InputManagerUnary<T>
BranchIfDebug<T>
Type Parameters:
T - input type

public class BranchIfDebug<T extends InputFromManager> extends InputManagerUnary<T>
Uses one input-manager normally, but a different one if in debug mode.
Author:
Owen Feehan
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    InputManager<T>
    If defined, this provides an input to the manager when in debug-mode, rather than than otherwise inputs.
    protected InputsWithDirectory<T>
    inputsFromDelegate(InputsWithDirectory<T> fromDelegate, InputManagerParameters parameters)
     
    void
    setInputDebug(InputManager<T> inputDebug)
    If defined, this provides an input to the manager when in debug-mode, rather than than otherwise inputs.

    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

    Methods inherited from class java.lang.Object

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

    • BranchIfDebug

      public BranchIfDebug()
  • Method Details

    • inputsFromDelegate

      protected InputsWithDirectory<T> inputsFromDelegate(InputsWithDirectory<T> fromDelegate, InputManagerParameters parameters) throws InputReadFailedException
      Specified by:
      inputsFromDelegate in class InputManagerUnary<T extends InputFromManager>
      Throws:
      InputReadFailedException
    • getInputDebug

      public InputManager<T> getInputDebug()
      If defined, this provides an input to the manager when in debug-mode, rather than than otherwise inputs.

      Note that only the first item is ever read from this input-manager.

    • setInputDebug

      public void setInputDebug(InputManager<T> inputDebug)
      If defined, this provides an input to the manager when in debug-mode, rather than than otherwise inputs.

      Note that only the first item is ever read from this input-manager.