Class ExperimentFeedbackContext
Object
org.anchoranalysis.experiment.task.ExperimentFeedbackContext
public class ExperimentFeedbackContext extends Object
Objects to give the user feedback about different aspects of the experiment.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description ExperimentFeedbackContext(StatefulMessageLogger loggerExperiment, boolean detailedLogging, ExecutionTimeRecorder executionTimeRecorder) -
Method Summary
Modifier and Type Method Description ExecutionTimeRecordergetExecutionTimeRecorder()Allows execution-time for particular operations to be recorded.StatefulMessageLoggergetLoggerExperiment()The logger associated with the experiment.InputOutputContextStatefulinputOutput(ExecutionArguments executionArguments, OutputterChecked outputter)Derive anInputOutputContextStatefulfrom the current context.booleanisDetailedLogging()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)
-
-
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.
-