Class InputManagerParameters

Object
InputManagerParameters

public class InputManagerParameters extends Object
Parameters passed to an InputManager to generate input-objects.
Author:
Owen Feehan
  • Constructor Details

    • InputManagerParameters

      public InputManagerParameters(Logger logger)
      Create with only a logger, and using sensible default values for the other fields.
      Parameters:
      logger - the logger.
    • InputManagerParameters

      public InputManagerParameters(OperationContext operationContext)
      Create with only a OperationContext, and using sensible default values for the other fields.
      Parameters:
      operationContext - context for logging and recording execution times.
    • InputManagerParameters

      public InputManagerParameters(InputContextParameters inputContext, OperationContext operationContext)
      Creates a new InputManagerParameters instance.
      Parameters:
      inputContext - Additional parameters that offer context for many beans that provide input-functions.
      operationContext - Allows for logging and recording the execution-time of particular operations.
  • Method Details

    • isDebugModeActivated

      public boolean isDebugModeActivated()
      Whether debug-mode has been activated.
      Returns:
      true iff debug-mode has been activated.
    • getDebugModeParameters

      public Optional<DebugModeParameters> getDebugModeParameters()
      Parameters for debug-mode (only defined if we are in debug mode).
      Returns:
      the parameters, if they exist.
    • getExecutionTimeRecorder

      public ExecutionTimeRecorder getExecutionTimeRecorder()
      Allows for the execution time of certain operations to be recorded.
      Returns:
      the execution-time-recorder.
    • getLogger

      public Logger getLogger()
      Where to write informative messages to, and and any non-fatal errors (fatal errors are throw as exceptions).
      Returns:
      the logger.
    • getInputContext

      public InputContextParameters getInputContext()
      Additional parameters that offer context for many beans that provide input-functions.
    • getOperationContext

      public OperationContext getOperationContext()
      Allows for logging and recording the execution-time of particular operations.