Class InputOutputContextStateful
Object
InputOutputContextStateful
- All Implemented Interfaces:
InputOutputContext
This exists as an implementation of
InputOutputContext that exposes a StatefulMessageLogger.
As StatefulMessageLogger exists only in this package, and not in the package where
InputOutputContext is defined, the interface and class are deliberately separated.
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionInputOutputContextStateful(ExecutionArguments executionArguments, Outputter outputter, ExecutionTimeRecorder executionTimeRecorder, StatefulMessageLogger logger, ErrorReporter errorReporter) Creates with initialization arguments. -
Method Summary
Modifier and TypeMethodDescriptionUser-supplied arguments that can further specify an experiment's execution.booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.anchoranalysis.io.output.outputter.InputOutputContext
common, getErrorReporter, getMessageReporter, maybeSubdirectory, operationContext, subdirectory
-
Constructor Details
-
InputOutputContextStateful
public InputOutputContextStateful(ExecutionArguments executionArguments, Outputter outputter, ExecutionTimeRecorder executionTimeRecorder, StatefulMessageLogger logger, ErrorReporter errorReporter) Creates with initialization arguments.- Parameters:
executionArguments- user-supplied arguments that can further specify an experiment's execution.outputter- where files are outputted to, and how that output occurs.executionTimeRecorder- records how long different aspects of an experiment take to execute.logger- where log messages written to.errorReporter- where errors are written to.
-
-
Method Details
-
getModelDirectory
- Specified by:
getModelDirectoryin interfaceInputOutputContext
-
isDebugEnabled
public boolean isDebugEnabled()- Specified by:
isDebugEnabledin interfaceInputOutputContext
-
getOutputter
- Specified by:
getOutputterin interfaceInputOutputContext
-
getLogger
- Specified by:
getLoggerin interfaceInputOutputContext
-
getMessageLogger
- Returns:
- the logger.
-
getExecutionTimeRecorder
- Specified by:
getExecutionTimeRecorderin interfaceInputOutputContext
-
getExecutionArguments
User-supplied arguments that can further specify an experiment's execution.
-