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 newExperimentFeedbackContext
instance. -
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 anInputOutputContextStateful
from the current context.boolean
Iff 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 newExperimentFeedbackContext
instance.- 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 anInputOutputContextStateful
from the current context.- Parameters:
executionArguments
- theExecutionArguments
for the context.outputter
- theOutputterChecked
for the context.- Returns:
- a newly-created
InputOutputContextStateful
derived 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.
-