public class ParametersExperiment extends Object
Constructor and Description |
---|
ParametersExperiment(ExecutionArguments executionArguments,
String experimentIdentifier,
OutputterChecked outputter,
PathPrefixer prefixer,
ExperimentFeedbackContext feedbackContext)
Creates with initialization arguments.
|
Modifier and Type | Method and Description |
---|---|
InitializationContext |
deriveInitializationContext()
Derives an
InitializationContext from the parameters. |
RecordedExecutionTimes |
executionTimeStatistics()
The execution-times that have been recorded.
|
Optional<String> |
experimentIdentifierForOutputPath()
The experiment-identifier to use in the output-path, if one should be used.
|
InputOutputContextStateful |
getContext() |
ExecutionArguments |
getExecutionArguments()
User-supplied arguments that can further specify an experiment's execution.
|
ExecutionTimeRecorder |
getExecutionTimeRecorder()
Allows execution-time for particular operations to be recorded.
|
String |
getExperimentIdentifier() |
StatefulMessageLogger |
getLoggerExperiment()
The message-logger used for experiment-wide messages.
|
LoggingDestination |
getLoggerTaskCreator()
This is a means to create new log-reporters for each task.
|
Outputter |
getOutputter()
An outputter that writes to the particular output-directory.
|
PathPrefixer |
getPrefixer()
Determines prefixes used in the paths for outputted files.
|
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.
|
void |
setLoggerTaskCreator(LoggingDestination loggerTaskCreator)
This is a means to create new log-reporters for each task.
|
public ParametersExperiment(ExecutionArguments executionArguments, String experimentIdentifier, OutputterChecked outputter, PathPrefixer prefixer, ExperimentFeedbackContext feedbackContext)
executionArguments
- user-supplied arguments that can further specify an experiment's
execution.experimentIdentifier
- uniquely identifies an experiment.outputter
- where files are outputted to, and how that output occurs.prefixer
- determines prefixes used in the paths for outputted files.feedbackContext
- allows execution-time for particular operations to be recorded.public Optional<String> experimentIdentifierForOutputPath()
Optional.empty()
to exclude from output path.public Outputter getOutputter()
public StatefulMessageLogger getLoggerExperiment()
public ExecutionArguments getExecutionArguments()
public InitializationContext deriveInitializationContext()
InitializationContext
from the parameters.InitializationContext
.public RecordedExecutionTimes executionTimeStatistics()
RecordedExecutionTimes
that describes the execution-times.public String getExperimentIdentifier()
public InputOutputContextStateful getContext()
public PathPrefixer getPrefixer()
public LoggingDestination getLoggerTaskCreator()
public void setLoggerTaskCreator(LoggingDestination loggerTaskCreator)
public boolean isDetailedLogging()
public ExecutionTimeRecorder getExecutionTimeRecorder()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.