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.Allows execution-times to be recorded for particular operations.The associated logger.An input-directory in which models are stored.An outputter that writes to the particular output-directory.booleanIs debug-mode enabled?Methods 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
Description copied from interface:InputOutputContextAn input-directory in which models are stored.- Specified by:
getModelDirectoryin interfaceInputOutputContext- Returns:
- a path to the model-directory.
-
isDebugEnabled
public boolean isDebugEnabled()Description copied from interface:InputOutputContextIs debug-mode enabled?- Specified by:
isDebugEnabledin interfaceInputOutputContext- Returns:
- true iff debug-mode is enabled
-
getOutputter
Description copied from interface:InputOutputContextAn outputter that writes to the particular output-directory.- Specified by:
getOutputterin interfaceInputOutputContext- Returns:
- the outputter.
-
getLogger
Description copied from interface:InputOutputContextThe associated logger.- Specified by:
getLoggerin interfaceInputOutputContext- Returns:
- the logger associated with input-output operations.
-
getMessageLogger
- Returns:
- the logger.
-
getExecutionTimeRecorder
Description copied from interface:InputOutputContextAllows execution-times to be recorded for particular operations.- Specified by:
getExecutionTimeRecorderin interfaceInputOutputContext- Returns:
- the recorder.
-
getExecutionArguments
User-supplied arguments that can further specify an experiment's execution.
-