public interface InputOutputContext
Modifier and Type | Method and Description |
---|---|
default CommonContext |
common()
Creates a
CommonContext a context that contains a subset of this context. |
default ErrorReporter |
getErrorReporter()
The associated error reporter.
|
ExecutionTimeRecorder |
getExecutionTimeRecorder()
Allows execution-times to be recorded for particular operations.
|
Logger |
getLogger()
The associated logger.
|
default MessageLogger |
getMessageReporter()
The associated message reporter.
|
Path |
getModelDirectory()
An input-directory in which models are stored.
|
Outputter |
getOutputter()
An outputter that writes to the particular output-directory.
|
boolean |
isDebugEnabled()
Is debug-mode enabled?
|
default InputOutputContext |
maybeSubdirectory(Optional<String> subdirectoryName,
boolean inheritOutputRulesAndRecording)
Optionally creates a new context like with
subdirectory(java.lang.String, boolean) but only if a directory-name
is defined |
default OperationContext |
operationContext() |
default InputOutputContext |
subdirectory(String subdirectoryName,
boolean inheritOutputRulesAndRecording)
Creates a new context that writes instead to a subdirectory.
|
Path getModelDirectory()
return a path to the model-directory
Outputter getOutputter()
boolean isDebugEnabled()
Logger getLogger()
ExecutionTimeRecorder getExecutionTimeRecorder()
default CommonContext common()
CommonContext
a context that contains a subset of this context.CommonContext
reusing the objects from this context.default ErrorReporter getErrorReporter()
default MessageLogger getMessageReporter()
default InputOutputContext subdirectory(String subdirectoryName, boolean inheritOutputRulesAndRecording)
subdirectoryName
- subdirectory nameinheritOutputRulesAndRecording
- if true, the output rules and recording are inherited
from the parent directory. if false, they are not, and all outputs are allowed and are
unrecorded.default InputOutputContext maybeSubdirectory(Optional<String> subdirectoryName, boolean inheritOutputRulesAndRecording)
subdirectory(java.lang.String, boolean)
but only if a directory-name
is definedsubdirectoryName
- if defined, a new context is created that writes into a subdirectory
of this nameinheritOutputRulesAndRecording
- if true, the output rules and recording are inherited
from the parent directory. if false, they are not, and all outputs are allowed and are
unrecorded.default OperationContext operationContext()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.