Class BranchIfDebug<T extends InputFromManager>

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 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 class InputManagerUnary<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

      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.