public class ElementOutputter extends Object
Constructor and Description |
---|
ElementOutputter(OutputterChecked outputter,
ExecutionTimeRecorder executionTimeRecorder,
java.util.function.Supplier<Optional<Logger>> logger) |
Modifier and Type | Method and Description |
---|---|
OutputterChecked |
deriveSubdirectory(String subdirectoryName,
boolean inheritOutputRulesAndRecording)
Derives a bound-output-manager for a (possibly newly created) subdirectory of the existing
manager.
|
ExecutionTimeRecorder |
getExecutionTimeRecorder()
Records the execution time of particular operations.
|
MultiLevelOutputEnabled |
getOutputsEnabled()
Which outputs are enabled or not enabled.
|
OutputterChecked |
getOutputter()
The outputter for writing the element.
|
OutputWriteSettings |
getSettings()
General settings for outputting.
|
Optional<ImageFileFormat> |
getSuggestedFormatToWrite() |
Optional<Logger> |
logger() |
Path |
makeOutputPath(Optional<String> suffixWithoutExtension,
String extension,
String fallbackSuffix)
Creates a full absolute path that completes the part of the path present in the outputter
with an additional suffix.
|
public ElementOutputter(OutputterChecked outputter, ExecutionTimeRecorder executionTimeRecorder, java.util.function.Supplier<Optional<Logger>> logger)
public OutputterChecked deriveSubdirectory(String subdirectoryName, boolean inheritOutputRulesAndRecording)
subdirectoryName
- the subdirectory-name.inheritOutputRulesAndRecording
- 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.public Path makeOutputPath(Optional<String> suffixWithoutExtension, String extension, String fallbackSuffix)
suffixWithoutExtension
- the suffix for the path (without any extension).fallbackSuffix
- if neither a prefix
is defined nor a suffix
, then this
provides a suffix to use so a file isn't only an extension.public OutputWriteSettings getSettings()
public Optional<ImageFileFormat> getSuggestedFormatToWrite()
public MultiLevelOutputEnabled getOutputsEnabled()
public OutputterChecked getOutputter()
public ExecutionTimeRecorder getExecutionTimeRecorder()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.