Class ExperimentFeedbackContext
Object
ExperimentFeedbackContext
Objects to give the user feedback about different aspects of the experiment.
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionExperimentFeedbackContext(StatefulMessageLogger loggerExperiment, boolean detailedLogging, ExecutionTimeRecorder executionTimeRecorder) Creates a newExperimentFeedbackContextinstance. -
Method Summary
Modifier and TypeMethodDescriptionAllows execution-time for particular operations to be recorded.The logger associated with the experiment.inputOutput(ExecutionArguments executionArguments, OutputterChecked outputter) Derive anInputOutputContextStatefulfrom the current context.booleanIff true, additional log messages are written to describe each job in terms of its unique name, output folder, average execution time etc.
-
Constructor Details
-
ExperimentFeedbackContext
public ExperimentFeedbackContext(StatefulMessageLogger loggerExperiment, boolean detailedLogging, ExecutionTimeRecorder executionTimeRecorder) Creates a newExperimentFeedbackContextinstance.- Parameters:
loggerExperiment- The logger associated with the experiment.detailedLogging- Iff true, additional log messages are written to describe each job in terms of its unique name, output folder, average execution time etc.executionTimeRecorder- Allows execution-time for particular operations to be recorded.
-
-
Method Details
-
inputOutput
public InputOutputContextStateful inputOutput(ExecutionArguments executionArguments, OutputterChecked outputter) Derive anInputOutputContextStatefulfrom the current context.- Parameters:
executionArguments- theExecutionArgumentsfor the context.outputter- theOutputterCheckedfor the context.- Returns:
- a newly-created
InputOutputContextStatefulderived from both this class and the passed arguments to this function.
-
getLoggerExperiment
The logger associated with the experiment. -
isDetailedLogging
public boolean isDetailedLogging()Iff true, additional log messages are written to describe each job in terms of its unique name, output folder, average execution time etc. -
getExecutionTimeRecorder
Allows execution-time for particular operations to be recorded.
-